Пример #1
0
        public async Task <ActionResult> Delete(string id)
        {
            _SubService.Remove(id);

            // it won't be null
            var testSubService = await _SubService.GetById(id);

            // If everything is ok then:
            await _uow.Commit();

            // not it must by null
            testSubService = await _SubService.GetById(id);

            return(RedirectToAction("Index"));
        }