Exemplo n.º 1
0
        public ActionResult UpdateVoucherType(VoucherTypeDTO vch)
        {
            int Count = posMasters.UpdateVoucherType(vch);

            return(new JsonResult {
                Data = Count, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Exemplo n.º 2
0
        public ActionResult DeleteVoucherType(VoucherTypeDTO vch)
        {
            var c = posMasters.DeleteVoucherType(vch.RecordId);

            return(new JsonResult {
                Data = c, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Exemplo n.º 3
0
        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
            });
        }