public ActionResult CreateTag() { DocumentationFileTagViewModel vm = new DocumentationFileTagViewModel(); vm.PopulateDropDowns(this.userTasks.GetAllAdminPermissions()); return(View(vm)); }
public ActionResult EditTag(int id) { DocumentationFileTag tag = this.docTasks.GetDocumentationFileTag(id); if (tag != null) { DocumentationFileTagViewModel vm = new DocumentationFileTagViewModel(tag); vm.PopulateDropDowns(this.userTasks.GetAllAdminPermissions()); return(View(vm)); } else { return(new HttpNotFoundResult()); } }