// POST: api/Departments public IHttpActionResult Post(Department department) { repo.Creat(department); return(Ok("Data has been inserted")); }