public IHttpActionResult Get(int id)
        {
            ResponseContent <Musteriler> content;

            using (var musterilerBusiness = new MusterilerBusiness())
            {
                // Get customer from business layer (Core App)
                List <Musteriler> musteriler = null;
                try
                {
                    var c = musterilerBusiness.SelectById(id);
                    if (c != null)
                    {
                        musteriler = new List <Musteriler>();
                        musteriler.Add(c);
                    }

                    // Prepare a content
                    content = new ResponseContent <Musteriler>(musteriler);

                    // Return content as a json and proper http response
                    return(new XmlResult <Musteriler>(content, Request));
                }
                catch (Exception)
                {
                    // Prepare a content
                    content = new ResponseContent <Musteriler>(null);
                    return(new XmlResult <Musteriler>(content, Request));
                }
            }
        }
 public Musteriler SelectMusteriById(int musteriId)
 {
     try
     {
         using (MusterilerBusiness musterilerBusiness = new MusterilerBusiness())
         {
             return(musterilerBusiness.SelectById(musteriId));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }