public void Update(UpdateSectionListDto newSectionListDto)
        {
            SectionList sectionListForUpdate = DbSet.Find(newSectionListDto.SectionListId);

            sectionListForUpdate.Title      = newSectionListDto.Title;
            sectionListForUpdate.DateUpdate = DateTime.Now;
        }
示例#2
0
 public void UpdateSectionList(UpdateSectionListDto newSectionListDto)
 {
     _sectionListRepo.Update(newSectionListDto);
     _sectionListRepo.SaveChanges();
 }