public ActionResult GetAllInvoice(string fromDate, string toDate) { // DateTime from = Convert.ToDateTime(fromDate); // DateTime to = Convert.ToDateTime(toDate); var partybalance = partyBalanceService.DailyReceiveAndPayment(2, fromDate, toDate); return(Json(partybalance, JsonRequestBehavior.AllowGet)); }
public ActionResult GetAllReceipt(string fromDate, string toDate) { //DateTime from = Convert.ToDateTime(fromDate); //DateTime to = Convert.ToDateTime(toDate); var partybalance = partyBalanceService.DailyReceiveAndPayment(1, fromDate, toDate); // var result = AutoMapper.Mapper.Map<List<PartyBalance>, List<PartyBalanceResponse>>(partybalance); return(Json(partybalance, JsonRequestBehavior.AllowGet)); }