Exemplo n.º 1
0
 public DataResult <List <UserModel> > FindNonAuthenticationUsersByRole(int roleId, int start, int count, string searchByName)
 {
     try
     {
         var users         = m_userUoW.FindNonAuthenticationServiceUsersByRole(roleId, start, GetItemsOnPageCount(count), searchByName);
         var viewModelList = m_mapper.Map <List <UserModel> >(users);
         return(Success(viewModelList));
     }
     catch (DatabaseException e)
     {
         m_logger.LogWarning(e);
         return(Error <List <UserModel> >(e.Message));
     }
 }