Esempio n. 1
0
        public IActionResult Get(Guid id)
        {
            var homework = homeworks.Get(id);

            if (homework == null)
            {
                return(NotFound());
            }
            return(Ok(HomeworkModel.ToModel(homework)));
        }
Esempio n. 2
0
        public IActionResult Get(Guid id)
        {
            Homework homework = logic.Get(id);

            if (homework == null)
            {
                return(NotFound());
            }
            return(Ok(homework));
        }