public ActionResult <University> PostUniversity(University university) { _universityService.AddUniversity(university); return(CreatedAtAction("GetUniversity", new { id = university.Id }, university)); }
public IHttpActionResult AddUniversity([FromBody] University university) { _universityService.AddUniversity(university, GetCurrentUserId()); return(Content(HttpStatusCode.NoContent, "")); }