// GET api/<controller>/5 public IHttpActionResult Get(int id) { ResponseContent <Sirket> content; using (var sirketBusiness = new SirketBusiness()) { List <Sirket> sirketList = null; try { var temp = sirketBusiness.SirketSecById(id); if (temp != null) { sirketList = new List <Sirket>(); sirketList.Add(temp); } content = new ResponseContent <Sirket>(sirketList); return(new StandartResult <Sirket>(content, Request)); } catch (Exception) { content = new ResponseContent <Sirket>(null); return(new StandartResult <Sirket>(content, Request)); } } }