コード例 #1
0
        public JsonResult UpdateStatus(string id)
        {
            objBDC = new BusChargesMasterBusiness();
            int  Id      = Convert.ToInt32(id);
            bool _Result = objBDC.FindById(Id);

            if (_Result == true)
            {
                _Result = false;
            }
            else
            {
                _Result = true;
            }

            BusChargesMasterCustomModel objModel = new BusChargesMasterCustomModel();

            objModel.BusChargesMasterId = Id;
            objBDC.SetActiveBusChargesRegistrationDetail(objModel);
            return(Json(new { result = _Result }));
        }
コード例 #2
0
        public ActionResult DeleteStatus(string id)
        {
            objBDC = new BusChargesMasterBusiness();
            int  Id      = Convert.ToInt32(id);
            bool _Result = objBDC.FindById(Id);

            if (_Result == true)
            {
                _Result = false;
            }
            else
            {
                _Result = true;
            }

            BusChargesMasterCustomModel objModel = new BusChargesMasterCustomModel();

            objModel.BusChargesMasterId = Id;
            objBDC.DeleteBusChargesRegistrationDetail(objModel);

            return(RedirectToAction("Index"));
        }