public async Task <IActionResult> Edit(int id, [Bind("Id,PartnerTypeId,Name,StartDate,EndDate")] PartnerModel partner)
        {
            if (id != partner.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                _partnerFactory.UpdatePartner(partner);
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["PartnerTypeId"] = new SelectList(_partnerTypeFactory.GetAllPartnerTypes(), "Id", "Name", partner.PartnerTypeId);
            return(View(partner));
        }