public JsonResult UpdateStatus(string id) { objBDC = new FeeMasterBusiness(); int Id = Convert.ToInt32(id); bool _Result = objBDC.FindById(Id); if (_Result == true) { _Result = false; } else { _Result = true; } FeeMasterCustomModel objModel = new FeeMasterCustomModel(); objModel.FeeMasterId = Id; objBDC.SetActiveFeeRegistrationDetail(objModel); return(Json(new { result = _Result })); }
public ActionResult DeleteStatus(string id) { objBDC = new FeeMasterBusiness(); int Id = Convert.ToInt32(id); bool _Result = objBDC.FindById(Id); if (_Result == true) { _Result = false; } else { _Result = true; } FeeMasterCustomModel objModel = new FeeMasterCustomModel(); objModel.FeeMasterId = Id; objBDC.DeleteFeeRegistrationDetail(objModel); return(RedirectToAction("Index")); }