예제 #1
0
 public IActionResult Put(int id, [FromBody] TblSupplementCourse uSupplementCourse)
 {
     return(new JsonResult(this.repository.UpdateAsync(uSupplementCourse, id).Result, this.DefaultJsonSettings));
 }
예제 #2
0
 public IActionResult Post([FromBody] TblSupplementCourse nSupplementCourse)
 {
     return(new JsonResult(this.repository.AddAsync(nSupplementCourse).Result, this.DefaultJsonSettings));
 }