コード例 #1
0
 public ActionResult AdditionalTagsGridViewPartial()
 {
     using (var db = new InnosixEntities())
     {
         var tags           = db.TechTag;
         var tagsDeclined   = db.TechTagDeclined;
         var additionalTags = db.GetAdditionalTechTags()
                              .Where(at =>
                                     !tags.Any(t => t.TagName == at.AdditionalTechTags) &&
                                     !tagsDeclined.Any(t => t.TagName == at.AdditionalTechTags));
         return(PartialView("_AdditionalTagsGridViewPartial", additionalTags.ToList()));
     }
 }