public IHttpActionResult GetById(string id) { var item = ContactsRepo.Find(id); if (item == null) { return(NotFound()); } return(Json(item)); }