コード例 #1
0
        public ActionResult Edit(int id)
        {
            var snippet   = _snippetService.GetSnippet(id);
            var snippetVM = Mapper.Map <Snippet, SnippetViewModel>(snippet);

            SetLanguageTypes(snippetVM);
            return(View(snippetVM));
        }