Ejemplo n.º 1
0
        public async Task <IActionResult> updateChapterProject(ChapterProject chapterProject)
        {
            try
            {
                await _teacherService.updateChapterProject(chapterProject);

                return(Ok());
            }
            catch (AppException ex)
            {
                return(BadRequest(new { message = ex.Message }));
            }
        }
Ejemplo n.º 2
0
 public async Task updateChapterProject(ChapterProject chapterProject)
 {
     _context.Update(chapterProject);
     await _context.SaveChangesAsync();
 }
Ejemplo n.º 3
0
 public async Task CreateChapterProject(ChapterProject chapterProject)
 {
     _context.Add(chapterProject);
     await _context.SaveChangesAsync();
 }