public int Add(WebPortal.Model.TaiNguyen taiNguyen) { using (WebPortalEntities dataEntities = new WebPortalEntities()) { dataEntities.AddToTaiNguyens(taiNguyen); dataEntities.SaveChanges(); return taiNguyen.IDTaiNguyen; } }
public int Add(WebPortal.Model.TaiNguyen taiNguyen) { using (WebPortalEntities dataEntities = new WebPortalEntities()) { dataEntities.AddToTaiNguyens(taiNguyen); dataEntities.SaveChanges(); return taiNguyen.IDTaiNguyen; } }