public IActionResult AddSponsor(Sponsor s) { s.SponsorId = Guid.NewGuid().ToString(); sponsorlogic.Add(s); return(View(nameof(ListSponsors), sponsorlogic.List())); }
public void AddSponsor([FromBody] Sponsor item) { logic.Add(item); }