diff --git a/StudentProgressRecord/Program.cs b/StudentProgressRecord/Program.cs index 80291d0..3b95758 100644 --- a/StudentProgressRecord/Program.cs +++ b/StudentProgressRecord/Program.cs @@ -1,4 +1,5 @@ +using StudentProgressRecord.IRepositories; using StudentProgressRecord.Repositories; using StudentProgressRecord.RepositoryImp; using Unity; @@ -24,16 +25,6 @@ namespace StudentProgressRecord { var container = new UnityContainer(); - container.RegisterType - (new TransientLifetimeManager()); - - - container.RegisterType - (new TransientLifetimeManager()); - - - container.RegisterType - (new TransientLifetimeManager()); container.RegisterType (new TransientLifetimeManager()); @@ -47,6 +38,9 @@ namespace StudentProgressRecord container.RegisterType (new TransientLifetimeManager()); + container.RegisterType + (new TransientLifetimeManager()); + return container; }