Example #1
0
        public DataResult <IList <UserBasicInfoModel> > FindBasicUserInfosByDataType(string dataType, IList <string> dataValues)
        {
            try
            {
                var userEntities = m_userUoW.FindBasicUserInfosByDataType(dataType, dataValues);
                var userList     = m_mapper.Map <IList <UserBasicInfoModel> >(userEntities);

                return(Success(userList));
            }
            catch (DatabaseException e)
            {
                m_logger.LogWarning(e);
                return(Error <IList <UserBasicInfoModel> >(e.Message));
            }
        }