// GET: api/Translate/5 public IHttpActionResult Get(int id) { var trans = tservice.GetTransById(id); if (trans != null) { return(Ok(trans)); } return(NotFound()); }