public async Task <ActionResult <Sponsor> > CreateSponsor([FromBody] SponsorViewModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { var created = await sponsorService.CreateSponsorAsync(model); return(CreatedAtAction(nameof(GetSponsorById), new { sponsorId = created.Id }, created)); } catch (Exception e) { return(await HandleControllerException(e)); } }