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