// PUT: api/Employee/5 public IHttpActionResult Put(int id, [FromBody] Employee emp) { //Employee e=entities.Employees.Single(x => x.BusinessEntityID == id); try { entities.uspUpdateEmployeePersonalInfo(id, emp.NationalIDNumber, emp.BirthDate, emp.MaritalStatus, emp.Gender); return(Ok(emp)); } catch { return(NotFound()); } }