Пример #1
0
        public ActionResult DeleteBusiness(int id)
        {
            var businessRepo = _repository.GetBusinessById(id);

            if (businessRepo == null)
            {
                return(NotFound());
            }

            _repository.DeleteBusiness(businessRepo);
            _repository.SaveChanges();
            return(NoContent());
        }