public DataResult <UserBasicInfoModel> GetBasicUserInfoById(int id) { try { var userEntity = m_userUoW.GetBasicUserInfoById(id); var user = m_mapper.Map <UserBasicInfoModel>(userEntity); return(Success(user)); } catch (NoResultException <UserEntity> e) { m_logger.LogWarning(e); return(Error <UserBasicInfoModel>(m_translator.Translate("invalid-user-id"), DataResultErrorCode.UserNotExistId)); } catch (DatabaseException e) { m_logger.LogWarning(e); return(Error <UserBasicInfoModel>(e.Message)); } }