Esempio n. 1
0
        public async Task <ActionResult> Detail(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(RedirectToHome());
            }

            var entity = await _wordService.GetByKey(id);

            if (entity == null)
            {
                return(RedirectToHome());
            }

            var model = WordModel.MapEntityToModel(entity);

            return(View(model));
        }