示例#1
0
        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());
        }
示例#2
0
        public async Task <IActionResult> UpdateStatus(int maYeuCau, int maStatus, string moTa)
        {
            var result = await _yeuCauService.UpdateStatus(maYeuCau, maStatus, moTa);

            return(Ok(result));
        }