Beispiel #1
0
 public IResult Quit(Worker worker)
 {
     try
     {
         var userRole = _userRoleDal.Get(ur => ur.UserId == worker.WorkerId);
         userRole.RoleId = 1;
         _userRoleDal.Update(userRole);
         worker.QuitDate = DateTime.Now;
         _workerDal.Update(worker);
         return(new SuccessResult());
     }
     catch (Exception)
     {
         return(new ErrorResult(Messages.ErrorWhileUpdatingEntity));
     }
 }
Beispiel #2
0
 public void Update(UserRole userRole)
 {
     _userRoleDal.Update(userRole);
 }
Beispiel #3
0
 //[FluentValidationAspect(typeof(UserRoleValidatior))]
 public UserRole Update(UserRole userrole)
 {
     //ValidatorTool.FluentValidate(new Microsoft.VisualStudio.TextTemplating28D969267979CD858E05D2BE5C0F6ADD2B952A5E4B5839D76153D9D05D4F46628B4E7B0E544A47E640C6C022B4FE46EE0D2694C76AACC0B5253C56B7E99D54CF.GeneratedTextTransformation+DatabaseTableValidatior(), UserRole);
     return(_userroleDal.Update(userrole));
 }
 public UserRole Update(UserRole userRole)
 {
     return(_userRoleDal.Update(userRole));
 }
Beispiel #5
0
 public void Update(UserRole entity)
 {
     _UserRoleDal.Update(entity);
 }