public IHttpActionResult GetFileById(int id) { var file = fileRepo.GetById(id); if (file == null) { return(Content(HttpStatusCode.NotFound, "Item does not exist")); } return(Ok(file)); }