public string UpdateDocNo(string docCode, long id) { var order = db.Orders.Find(id); order.DocNo = AccDocHelp.CreateDocNo(docCode, id); db.SaveChanges(); return(order.DocNo); }
public string UpdateDocNo(string docCode, long id, long orderId) { var invent = db.Inventories.Find(id); invent.DocNo = AccDocHelp.CreateDocNo(docCode, orderId); db.SaveChanges(); return(invent.DocNo); }
public string UpdateDocNo(string docCode, long id) { var accDoc = db.AccDocs.Find(id); accDoc.DocNo = AccDocHelp.CreateDocNo(docCode, id); int l = accDoc.DocNo.Length; db.SaveChanges(); return(accDoc.DocNo); }