public IActionResult ThemSanPham(PM_INPUTORDER pi, SP_TaoPhieuNhap spt) { Debug.WriteLine("Log" + list.Count); TaoPhieuNhap mymodel = new TaoPhieuNhap(); mymodel.pS = service.GetAllStore(); mymodel.ispt = service.GetAllThemSanPham(list, spt); mymodel.tpnt = new TaoPhieuNhap_Temp(); mymodel.pi = pi; service.TaoPhieuNhap_Temp(mymodel.tpnt, mymodel); return(View("TaoPhieuNhap", mymodel)); }
public IEnumerable <SP_TaoPhieuNhap> GetAllThemSanPham(List <SP_TaoPhieuNhap> list, SP_TaoPhieuNhap t) { list.Add(t); return(list); }