public async Task <IActionResult> UpdateStatus(int maYeuCau1, int maStatus, string moTa) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _yeuCauService.UpdateStatus(maYeuCau1, maStatus, moTa); if (result == null) { return(BadRequest()); } return(Ok()); }
public async Task <IActionResult> UpdateStatus(int maYeuCau, int maStatus, string moTa) { var result = await _yeuCauService.UpdateStatus(maYeuCau, maStatus, moTa); return(Ok(result)); }