public ActionResult UpdateVoucherType(VoucherTypeDTO vch) { int Count = posMasters.UpdateVoucherType(vch); return(new JsonResult { Data = Count, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public ActionResult DeleteVoucherType(VoucherTypeDTO vch) { var c = posMasters.DeleteVoucherType(vch.RecordId); return(new JsonResult { Data = c, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public ActionResult SaveVoucherType(VoucherTypeDTO vch) { vch.statusid = 1; vch.createdby = Convert.ToInt64(Session["UserId"]); int Count = posMasters.SaveVoucherType(vch); return(new JsonResult { Data = Count, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }