public static List <WayBillTicketViewModel> BALSaveWayBillEntry(WayBillTicketModel model) { // List<WayBillViewModel> lstwaybillmodel; //if(model.NumberOfTicket>1 ) //{ // lstwaybillmodel = new List<WayBillViewModel>(); // var lastticketnumber = model.TicketEnd; // var tempfare = model.Fare; // var startTicket= model.TicketStart; // for (int a = startTicket; a <= lastticketnumber; a++) // { // model.TicketStart =startTicket++; // model.TicketEnd = model.TicketStart; // model.Fare = tempfare / model.NumberOfTicket; // // model.NumberOfTicket; //lstwaybillmodel.Add(WayBillRepository.SaveWayBillDetailsEntry(model).FirstOrDefault()); // } return(WayBillRepository.SaveWayBillDetailsEntry(model).ToList()); }