// GET: Admin/PetPlace public ActionResult Index(int Id) { ViewBag.ActiveMenu = "admin"; var model = new PetManagementModel().GetPetPlaceData(Id); return(View("..\\PetManagement\\Index", model)); }
public ActionResult SaveUpdatePetPlace(PetManagementModel model) { try { return(Json(new { result = 1, PetPlaceID = model.SaveUpdatePetPlace(model) }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { error = ex.Message }, JsonRequestBehavior.AllowGet)); } }