Ejemplo n.º 1
0
        public DataResult <List <UserModel> > FindNonAuthenticationServiceUsers(int start, int count, string searchByName)
        {
            try
            {
                var users         = m_userUoW.FindNonAuthenticationServiceUsers(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));
            }
        }