// DELETE api/<controller>/5
        public IHttpActionResult Delete(int id)
        {
            var content = new ResponseContent <Musteriler>(null);

            using (var musterilerBusiness = new MusterilerBusiness())
            {
                content.Result = musterilerBusiness.DeleteById(id) ? "1" : "0";

                return(new StandartResult <Musteriler>(content, Request));
            }
        }
 public bool SilMusteri(int musteriId)
 {
     try
     {
         using (MusterilerBusiness musterilerBusiness = new MusterilerBusiness())
         {
             musterilerBusiness.DeleteById(musteriId);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }