Пример #1
0
        // TODO: make JSONReult and display error on client
        public async Task <ActionResult> DelPeople(int id)
        {
            var result = await peopleService.DelPeopleTask(id);

            if (result.Successed)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }