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

            DbContext.SectionClosures.Add(sc);
            DbContext.SaveChanges();
            return(SectionClosureDTO.MapToDTOFunc(sc));
        }
Ejemplo n.º 2
0
 public SectionClosureDTO CloseSection([FromBody] SectionClosureDTO sectionClosureDTO)
 {
     return(Repository.CloseSection(sectionClosureDTO));
 }