Example #1
0
        public ActionResult Create()
        {
            MstActivityManageModel obj     = new MstActivityManageModel();
            dalMstDestination      objDest = new dalMstDestination();

            obj.MstDestDropDown = objDest.MstAllDestinations;
            return(PartialView("pvCreate", obj));
        }
Example #2
0
        public ActionResult Edit(long id)
        {
            MstActivityManageModel obj     = new MstActivityManageModel();
            dalMstDestination      objDest = new dalMstDestination();

            obj.MstDestDropDown = objDest.MstAllDestinations;
            obj.MstActivities   = db.GetActivityByID(id);
            return(PartialView("pvEdit", obj));
        }
Example #3
0
        public ActionResult Edit(MstActivityManageModel data)
        {
            if (ModelState.IsValid)
            {
                TempData["ErrMsg"] = db.Save(data.MstActivities);
                return(Json(new { success = true }));
            }
            dalMstDestination objDest = new dalMstDestination();

            data.MstDestDropDown = objDest.MstAllDestinations;
            return(PartialView("pvEdit", data));
        }
Example #4
0
        public ActionResult Create(MstActivityManageModel activity)
        {
            dalMstDestination objDest = new dalMstDestination();

            if (ModelState.IsValid)
            {
                TempData["ErrMsg"] = db.Save(activity.MstActivities);
                return(Json(new { success = true }));
            }
            activity.MstDestDropDown = objDest.MstAllDestinations;
            return(PartialView("pvCreate", activity));
        }