public IHttpActionResult Get(int id) { IHttpActionResult result; Species species = repository.GetByID((int)id); if (species != null) { result = Json <Species>(species); } else { result = NotFound(); } return(result); }
public IHttpActionResult Get(int id) { IHttpActionResult result; Species species = repository.GetByID((int)id); if (species != null) { result = Json <Species>(species); } else { result = NotFound(); } return(result); }