public void Update(UpdateSectionListDto newSectionListDto) { SectionList sectionListForUpdate = DbSet.Find(newSectionListDto.SectionListId); sectionListForUpdate.Title = newSectionListDto.Title; sectionListForUpdate.DateUpdate = DateTime.Now; }
public void UpdateSectionList(UpdateSectionListDto newSectionListDto) { _sectionListRepo.Update(newSectionListDto); _sectionListRepo.SaveChanges(); }