public void DeteleUserTitles(List <UserTitlesWM> webModelList)
 {
     try
     {
         _userTitlesOperations.DeleteUserTitles(UserTitlesMapping.MapToEntity(webModelList));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public void AddUserTitle(UserTitlesWM webModel)
 {
     try
     {
         _userTitlesOperations.AddUserTitle(UserTitlesMapping.MapToEntity(webModel));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public List <UserTitlesWM> GetAllUserTitles()
 {
     try
     {
         return(UserTitlesMapping.MaptoWM(_userTitlesOperations.GetAllUserTitles()));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public List <UserTitlesWM> FindUserTitles(Expression <Func <UserTitles, bool> > predicate)
 {
     try
     {
         return(UserTitlesMapping.MaptoWM(_userTitlesOperations.FindUserTitles(predicate)));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public UserTitlesWM GetUserTitle(int id)
 {
     try
     {
         return(UserTitlesMapping.MaptoWM(_userTitlesOperations.GetUserTitle(id)));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }