Esempio n. 1
0
        public async Task Remove(Guid id)
        {
            if (_repoCaterer.GetCatererAddressAndProducs(id).Result.Products.Any())
            {
                Notify("A caterer has registered products.");
                return;
            }

            await _repoCaterer.Remove(id);
        }
 private async Task <CatererViewModel> GetCatererAddressAndProducs(Guid id)
 {
     return(_mapper.Map <CatererViewModel>(await _repo.GetCatererAddressAndProducs(id)));
 }