Ejemplo n.º 1
0
 /// <summary>
 /// Basic constructor
 /// </summary>
 public WorkPkgController()
 {
     var data = new DataContext();
     RepositoryBase.InitRepository(data);
     this._workPackageRepository = WorkPackageRepository.GetInstance();
     
     var userRepository = UserRepository.GetInstance();
     this._currentUser = userRepository.GetLoggedUser();
     this._currentUserDto = Mapper.Map<UserDetailDTO>(this._currentUser);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Basic constructor
 /// </summary>
 public UserController()
 {
     var data = new DataContext();
     RepositoryBase.InitRepository(data);
     this._userRepository = UserRepository.GetInstance();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Basic constructor
 /// </summary>
 public RateController()
 {
     var data = new DataContext();
     RepositoryBase.InitRepository(data);
     this._rateRepository = RateRepository.GetInstance();
 }