public VendorDates UpdatesVendorDates(VendorDates vendorDates, long id) { var GetVendor = _dbContext.VendorDates.SingleOrDefault(m => m.Id == id); vendorDates.Id = GetVendor.Id; _dbContext.Entry(GetVendor).CurrentValues.SetValues(vendorDates); _dbContext.SaveChanges(); return(vendorDates); }
public VendorDates UpdatesVendorDates(VendorDates vendorDates, long id) { return(vendorDatesRepository.UpdatesVendorDates(vendorDates, id)); }
public VendorDates SaveVendorDates(VendorDates vendorDates) { vendorDates = _dbContext.VendorDates.Add(vendorDates); _dbContext.SaveChanges(); return(vendorDates); }
public VendorDates SaveVendorDates(VendorDates vendorDates) { return(vendorDatesRepository.SaveVendorDates(vendorDates)); }