Exemplo n.º 1
0
 public List <CSF_Users_GetUsersNotInGroup_Result> GetUsersNotInGroup(string strFullName, int RoleID)
 {
     try
     {
         var users = MyContext.CSF_Users_GetUsersNotInGroup(RoleID).ToList();
         if (strFullName != null && strFullName != "")
         {
             users = users.Where(u => u.FullName.ToLower().Contains(strFullName.ToLower())).ToList();
         }
         return(users);
     }
     catch (Exception ex)
     {
         Logs.WriteLog(ex);
         throw;
     }
 }