示例#1
0
 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"));
     }
 }
示例#2
0
 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));
        }
示例#5
0
        // GET: MembershipType/Edit/5
        public ActionResult Edit(Guid id)
        {
            Models.MembershipTypeModel membershipTypeModel = membershipTypeRepository.GetMembershipTypeByID(id);

            return(View("Edit", membershipTypeModel));
        }