Beispiel #1
0
        public IActionResult DeleteDistributor(Guid id)
        {
            var DistributorFromRepo = _distributor.GetDistributor(id);

            if (DistributorFromRepo == null)
            {
                return(NotFound());
            }
            _distributor.DeleteDistributor(DistributorFromRepo);
            if (!_distributor.Save())
            {
                throw new Exception($"Deleting Installer with id {id} failed, Please retry");
            }
            return(NoContent());
        }
 public bool DeleteDistributor(System.Int32 DistributorId)
 {
     return(_iDistributorRepository.DeleteDistributor(DistributorId));
 }