예제 #1
0
        public async Task <IActionResult> Get(Guid id)
        {
            var theme = await Task.Run(() => _themeFacade.GetForAdmin(id));

            if (theme == null)
            {
                return(NotFound());
            }

            return(Ok(theme));
        }
예제 #2
0
        public IActionResult AdminEdit(Guid id)
        {
            var model = _themeFacade.GetForAdmin(id);

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