Пример #1
0
        public DataResult <IList <UserModel> > FindUsers(int start, int count, string searchByName)
        {
            try
            {
                var users = m_userUoW.FindUsers(start, GetItemsOnPageCount(count), searchByName);

                var viewModelList = m_mapper.Map <IList <UserModel> >(users);
                return(Success(viewModelList));
            }
            catch (DatabaseException e)
            {
                m_logger.LogWarning(e);
                return(Error <IList <UserModel> >(e.Message));
            }
        }