public ActionResult SaveVendorPayment(string lstTotalDetails, string lstInvDetails) { List <VendorPaymentDTO> ListItems = serializer.Deserialize <List <VendorPaymentDTO> >(lstInvDetails); VendorPaymentDTO XYZ = serializer.Deserialize <VendorPaymentDTO>(lstTotalDetails); Boolean IsSaved = false; XYZ.createdby = 1; IsSaved = mmsTransactions.SaveVPDetails(XYZ, ListItems); return(new JsonResult { Data = IsSaved, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public ActionResult ShowVendorPayment(string VendorName) { VendorPaymentDTO VendorPaymentDTO = new VendorPaymentDTO(); List <VendorPaymentDTO> lstVendorPayment = new List <VendorPaymentDTO>(); lstVendorPayment = mmsTransactions.ShowVendorPaymentDetails(VendorName); var Alldata = new { griddetails = lstVendorPayment }; return(new JsonResult { Data = Alldata, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }