public Emp GetEmp(int id) { Emp item = repository.Get(id); if (item == null) { throw new System.Web.Http.HttpResponseException(HttpStatusCode.NotFound); } return(item); }