public void NewTag(CreateTagsDTO tagDTO) { Tag tag = new Tag() { tags = tagDTO.tags }; _tagRepository.Insert(tag); }
public ActionResult Create([Bind(Include = "id,tags")] CreateTagsDTO tag) { if (ModelState.IsValid) { _tagsService.NewTag(tag); return(RedirectToAction("Index")); } return(View(tag)); }