Exemplo n.º 1
0
 public IActionResult Add(Courses model)
 {
     model.Uid = Guid.NewGuid();
     _coursesService.Add(model);
     return(RedirectToAction("List", new { departmentUID = model.DepartmentUid }));
 }
Exemplo n.º 2
0
 public void PostCourse([FromBody] Course course)
 {
     _coursesService.Add(course);
 }