public BackDateLicenseError CreateBackDateLicenseError(BackDateLicenseError BackDateLicenseErrorItem) { using (var context = new DataContext()) { context.BackDateLicenseErrors.Add(BackDateLicenseErrorItem); context.SaveChanges(); return(BackDateLicenseErrorItem); } }
public BackDateLicenseError EditBackDateLicenseError(BackDateLicenseError BackDateLicenseError) { using (var context = new DataContext()) { context.Entry(BackDateLicenseError).State = EntityState.Modified; context.SaveChanges(); return(BackDateLicenseError); } }