public async Task <IActionResult> Create([Bind("VendorId,VendorName,Address,Tel,Fax,Email,UniteNo,TaxAddress,TaxZipCode,Contact,ContactTel,ContactEmail,StartDate,EndDate,Status,Kind")] VendorModel vendorModel) { if (ModelState.IsValid) { _context.Add(vendorModel); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(vendorModel)); }
public async Task <IActionResult> Create([Bind("DocId,DealState,DealDes,DealState2,FailFactor,FailFactor2,InOut,Hour,IsCharged,Cost,EndDate,CloseDate,ShutDate")] RepairDtlModel repairDtlModel) { if (ModelState.IsValid) { _context.Add(repairDtlModel); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(repairDtlModel)); }
public async Task <IActionResult> Create([Bind("StokId,StokCls,StokNo,StokNam,Unite,Price,Qty,SafeQty,Loc,Standard,Brand,Status,Rtp,Rtt,CustOrgan_CustId")] DeptStockModel deptStockModel) { if (ModelState.IsValid) { _context.Add(deptStockModel); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(deptStockModel)); }