//Delete Field Fees public ActionResult DeleteNatureOfParticular(FM_Fees_Fee model, int NatureofParticularID) { NatureOfParticular tblNatureOfParticular = (from e in TOSSDB.NatureOfParticulars where e.NatureofParticularID == NatureofParticularID select e).FirstOrDefault(); TOSSDB.NatureOfParticulars.Remove(tblNatureOfParticular); TOSSDB.SaveChanges(); return(RedirectToAction("Index")); }
//Get Update Field Fees public ActionResult Get_UpdateNatureOfParticular(FM_Fees_Fee model, int NatureofParticularID) { NatureOfParticular tblNatureOfParticulars = (from e in TOSSDB.NatureOfParticulars where e.NatureofParticularID == NatureofParticularID select e).FirstOrDefault(); model.getNatureofParticularcolumns.NatureofParticularID = tblNatureOfParticulars.NatureofParticularID; model.getNatureofParticularcolumns.NatureofParticularName = tblNatureOfParticulars.NatureofParticularName; return(PartialView("Particulars/NatureOfParticular/_UpdateNatureOfParticular", model)); }
public ActionResult UpdateNatureOfParticular(FM_Fees_Fee model) { NatureOfParticular tblNatureOfParticular = (from e in TOSSDB.NatureOfParticulars where e.NatureofParticularID == model.getNatureofParticularcolumns.NatureofParticularID select e).FirstOrDefault(); tblNatureOfParticular.NatureofParticularName = model.getNatureofParticularcolumns.NatureofParticularName; TOSSDB.Entry(tblNatureOfParticular); TOSSDB.SaveChanges(); return(PartialView("Particulars/NatureOfParticular/_UpdateNatureOfParticular", model)); }
public JsonResult AddNatureOfParticular(FM_Fees_Fee model) { NatureOfParticular tblNatureOfParticular = new NatureOfParticular(); tblNatureOfParticular.NatureofParticularName = model.getNatureofParticularcolumns.NatureofParticularName; TOSSDB.NatureOfParticulars.Add(tblNatureOfParticular); TOSSDB.SaveChanges(); return(Json(tblNatureOfParticular)); }
public FM_Fees_Fee() { getFieldFee = new List <FieldFee>(); getFieldFeecolumns = new FieldFee(); getFieldFeeList = new List <FieldFeeList>(); getFeeCategory = new List <FeeCategory>(); getFeeCategorycolumns = new FeeCategory(); getFeeCategoryList = new List <FeeCategoryList>(); // fieldFeeDDs = new List<FieldFeeDD>(); globalClasses = new GlobalClasses(); getNatureofParticular = new List <NatureOfParticular>(); getNatureofParticularcolumns = new NatureOfParticular(); getNatureofParticularList = new List <NatureofParticularList>(); getParticular = new List <Particular>(); getParticularcolumns = new Particular(); getParticularList = new List <ParticularList>(); }