コード例 #1
0
        public async Task <IActionResult> EditComplaint([FromRoute] string complaintId, [FromBody] EditComplaintDTO model)
        {
            var result = await _complaintsServices.EditComplaint(complaintId, model);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }