Пример #1
0
 public IActionResult Index()
 {
     _indmen = new IndexMeneger()
     {
         Itams = _toDo.GetItams(),
         Title = string.Empty
     };
     return(View(_indmen));
 }
Пример #2
0
        public IActionResult UnCompleated()
        {
            ViewData["Message"] = "Your application description page.";

            _indmen = new IndexMeneger()
            {
                Itams = _toDo.GetItams(completed: false)
            };
            return(View("Index", _indmen));
        }
Пример #3
0
        public async Task DeleteAsync(Guid id)
        {
            var itam = _toDo.GetItam(id);
            await _toDo.DeleteAsync(itam);

            _indmen = new IndexMeneger
            {
                Itams = _toDo.GetItams()
            };
            return;
        }
Пример #4
0
        public async Task <IActionResult> CheckingAsync(Guid id)
        {
            var itam = _toDo.GetItam(id);
            await _toDo.ChangeConditionAsync(itam);

            _indmen = new IndexMeneger
            {
                Itams = _toDo.GetItams()
            };
            return(View("Index", _indmen));
        }
Пример #5
0
        public async Task <IActionResult> AddAsync(IndexMeneger index)
        {
            await _toDo.AddAsync(new Itam
            {
                Title = index.Title
            });

            _indmen = new IndexMeneger()
            {
                Itams = _toDo.GetItams()
            };
            return(View("Index", _indmen));
        }