Beispiel #1
0
        public IActionResult Get()
        {
            var choreModels = _choreService.GetAll()

                              .ToApiModels();

            return(Ok(choreModels));
        }
Beispiel #2
0
        private void LoadChores()
        {
            _chores = _choreService.GetAll().ToList();

            clbChores.DataSource    = _chores;
            clbChores.DisplayMember = "Title";
            clbChores.ValueMember   = "IsCompleted";
            clbChores.CheckOnClick  = false;
            for (var i = 0; i < _chores.Count(); i++)
            {
                clbChores.SetItemCheckState(i, _chores[i].IsCompleted ? CheckState.Checked : CheckState.Unchecked);
            }
        }
Beispiel #3
0
 public IEnumerable <Chore> GetAll()
 {
     return(_choreService.GetAll());
 }