public IActionResult DeleteCustomer(long id)
        {
            var musteri = _customerfactory.Get(id);

            _customerfactory.Delete(musteri);
            return(Ok());
        }
 public IActionResult DeleteCustomer(long id)
 {
     try
     {
         var musteri = _customerFactory.Get(id);
         _customerFactory.Delete(musteri);
         return(Ok());
     }
     catch (Exception)
     {
         return(NotFound());
     }
 }