// GET api/<controller>/5 public IHttpActionResult Get(int id) { ResponseContent <Arac> content; using (var aracBusiness = new AracBusiness()) { List <Arac> aracList = null; try { var temp = aracBusiness.AracSecById(id); if (temp != null) { aracList = new List <Arac>(); aracList.Add(temp); } content = new ResponseContent <Arac>(aracList); return(new StandartResult <Arac>(content, Request)); } catch (Exception) { content = new ResponseContent <Arac>(null); return(new StandartResult <Arac>(content, Request)); } } }