Beispiel #1
0
        /// <summary>
        /// Consulta un usuario en la base de datos por numero de documento
        /// </summary>
        /// <param name="document">numero de documento</param>
        /// <returns>UserApp</returns>
        public async Task <UserApp> UserFindByDocument(string document)
        {
            try
            {
                var user = await _userAppData.UserFindByDocument(document);

                if (user != null)
                {
                    user.UserPw = string.Empty;
                }

                return(user);
            }
            catch (Exception)
            {
                throw;
            }
        }