public async Task <IActionResult> PatchAsync([FromQuery] int id, [FromQuery] int statusId) { var result = await _donorRepository.UpdateStatusAsync(id, statusId); if (result.IsSuccess) { return(Ok(result.Value)); } return(BadRequest(result.Value)); }
public async Task <IActionResult> PatchAsync([FromQuery] int id, [FromQuery] int statusId) { var result = await _donorRepository.UpdateStatusAsync(id, statusId); if (result.IsSuccess) { return(Ok(result.Value)); } return(BadRequest(result.Value)); }