public ActionResult Edit(Guid id, FormCollection collection) { try { // TODO: Add update logic here Models.MembershipTypeModel membershipTypeModel = new Models.MembershipTypeModel(); UpdateModel(membershipTypeModel); membershipTypeRepository.UpdateMembershipType(membershipTypeModel); return(RedirectToAction("Index")); } catch { return(View("Edit")); } }
public ActionResult Create(FormCollection collection) { try { // TODO: Add insert logic here Models.MembershipTypeModel membershipTypeModel = new Models.MembershipTypeModel(); UpdateModel(membershipTypeModel); membershipTypeRepository.InsertMembershipType(membershipTypeModel); return(RedirectToAction("Index")); } catch { return(View("CreateMembershipType")); } }
// GET: MembershipType/Delete/5 public ActionResult Delete(Guid id) { Models.MembershipTypeModel membershipTypeModel = membershipTypeRepository.GetMembershipTypeByID(id); return(View("DeleteMembershipType", membershipTypeModel)); }
// GET: MembershipType/Details/5 public ActionResult Details(Guid id) { Models.MembershipTypeModel membershipTypeModel = membershipTypeRepository.GetMembershipTypeByID(id); return(View("MembershipTypeDetails", membershipTypeModel)); }
// GET: MembershipType/Edit/5 public ActionResult Edit(Guid id) { Models.MembershipTypeModel membershipTypeModel = membershipTypeRepository.GetMembershipTypeByID(id); return(View("Edit", membershipTypeModel)); }