public IActionResult GetAll() { var result = _userDetailService.GetAll(); if (result.Succcess) { return(Ok(result)); } else { return(BadRequest(result)); } }
public async Task <IActionResult> GetAll() { _logger.LogInformation("UserDetailController::GetAll"); return(Ok(await _userDetailService.GetAll())); }