Beispiel #1
0
        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));
        }