public void EditDaysWork(DaysWork daysWork) { var d = applicationDbContext.DaysWorks.Where(a => a.IdArtit == daysWork.IdArtit).FirstOrDefault(); d = daysWork; applicationDbContext.SaveChanges(); }
public void AddDaysWork(DaysWork daysWork) { applicationDbContext.DaysWorks.Add(daysWork); applicationDbContext.SaveChanges(); }