public void DeleteUser(UsersWM webModel)
 {
     try
     {
         _usersOperations.DeleteUser(UsersMapping.MapToEntity(webModel));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public void AddUsers(List <UsersWM> webModelList)
 {
     try
     {
         _usersOperations.AddUsers(UsersMapping.MapToEntity(webModelList));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public List <UsersWM> FindUsers(Expression <Func <Users, bool> > predicate)
 {
     try
     {
         return(UsersMapping.MapToWM(_usersOperations.FindUsers(predicate)));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public List <UsersWM> GetAllUsers()
 {
     try
     {
         return(UsersMapping.MapToWM(_usersOperations.GetAllUsers()));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public UsersWM GetUser(int id)
 {
     try
     {
         return(UsersMapping.MapToWM(_usersOperations.GetUser(id)));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public UsersWM IdentifyUser(ClaimsIdentity claimsIdentity)
 {
     try
     {
         return(UsersMapping.MapToWM(_usersOperations.IdentifyUser(claimsIdentity)));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }