public IActionResult Create([Bind("Id,Url,Name,Title,MetaDescription,H1,Body,About,MainContact,MainContactInformalName,MainContactEmail,MainContactTel,LogoUrl,SiteUrl,DefaultPartnerSignupType,DiscountPricing,Notes,Inactive")] Partner partner) { if (ModelState.IsValid) { partner.InActive = true; Partner model = partner; _partnerRepository.Upsert(ref model); return(RedirectToAction("index", "partners")); } return(View(partner)); }
public IActionResult Details(Partner model) { _partnerRepository.Upsert(ref model); return(View(model)); }