Ejemplo n.º 1
0
        public async Task <IActionResult> GetAllAsync()
        {
            try
            {
                logger.LogInformation("Get All Users");

                return(Ok(await manageUser.GetAllUsersAsync()));
            }
            catch (Exception ex)
            {
                logger.LogError(ex.Message);
                return(StatusCode((int)HttpStatusCode.InternalServerError, "Internal Server error. Try again later"));
            }
        }