public SectionClosureDTO CloseSection(SectionClosureDTO sectionClosureDTO) { SectionClosure sc = SectionClosureDTO.MapToBaseFunc(sectionClosureDTO); DbContext.SectionClosures.Add(sc); DbContext.SaveChanges(); return(SectionClosureDTO.MapToDTOFunc(sc)); }
public SectionClosureDTO CloseSection([FromBody] SectionClosureDTO sectionClosureDTO) { return(Repository.CloseSection(sectionClosureDTO)); }