Exemplo n.º 1
0
        public SectionClosureDTO CloseSection(SectionClosureDTO sectionClosureDTO)
        {
            SectionClosure sc = SectionClosureDTO.MapToBaseFunc(sectionClosureDTO);

            DbContext.SectionClosures.Add(sc);
            DbContext.SaveChanges();
            return(SectionClosureDTO.MapToDTOFunc(sc));
        }
Exemplo n.º 2
0
 public static SectionClosureDTO MapToDTOFunc(SectionClosure sc)
 {
     return(MapToDTO.Compile().Invoke(sc));
 }