public async Task <ActionResult <DetailExportOrder> > Add(DetailExportOrder detailExportOrder) { _db.Add(detailExportOrder); await _db.SaveChangesAsync(); return(CreatedAtAction("get", new { id = detailExportOrder.Id }, detailExportOrder)); }
public async Task <ActionResult <ExportOrder> > Add(ExportOrder exportOrder) { exportOrder.Exp_Date = DateTime.Now; _db.Add(exportOrder); await _db.SaveChangesAsync(); return(CreatedAtAction("get", new { id = exportOrder.Id }, exportOrder)); }