Ejemplo n.º 1
0
        public async Task <IActionResult> DeleteSponsor(string sponsorId)
        {
            if (string.IsNullOrEmpty(sponsorId))
            {
                return(NotFound());
            }

            try
            {
                await sponsorService.DeleteSponsorAsync(sponsorId);

                return(Ok());
            }
            catch (Exception e)
            {
                return(await HandleControllerException(e));
            }
        }