Beispiel #1
0
 public OfferType GetEntity(OfferTypeModel model)
 {
     return new OfferType
     {
         OfferTypeId = model.OfferTypeId,
         Name = model.Name
     };
 }
 public ActionResult Edit(OfferTypeModel OfferType)
 {
     if (ModelState.IsValid)
     {
         _OfferTypeService.UpdateOfferType(offerTypeModel.GetEntity(OfferType));
         return RedirectToAction("Index");
     }
     return View(OfferType);
 }