public IActionResult Index() { _indmen = new IndexMeneger() { Itams = _toDo.GetItams(), Title = string.Empty }; return(View(_indmen)); }
public IActionResult UnCompleated() { ViewData["Message"] = "Your application description page."; _indmen = new IndexMeneger() { Itams = _toDo.GetItams(completed: false) }; return(View("Index", _indmen)); }
public async Task DeleteAsync(Guid id) { var itam = _toDo.GetItam(id); await _toDo.DeleteAsync(itam); _indmen = new IndexMeneger { Itams = _toDo.GetItams() }; return; }
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)); }
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)); }