public IActionResult DeleteRealtor(int id)
        {
            var result = _realtorRepo.Delete(id);

            if (result == null)
            {
                throw new NotImplementedException();
            }
            ;
            return(RedirectToAction(nameof(Realtors)));
        }
Пример #2
0
        public IActionResult DeleteRealtor(int id)
        {
            var result = realtorRepo.Delete(id);

            return(RedirectToAction(nameof(Realtors)));
        }