Exemple #1
0
        public ActionResult <Donations> UpdateDonation(string id, [FromBody] Donations donations)
        {
            var DonationCheck = _donationsService.GetDonation(id);

            if (DonationCheck == null)
            {
                return(NotFound());
            }

            _donationsService.UpdateDonation(id, donations);
            return(NoContent());
        }