ClearTagsAndCategiry() публичный Метод

public ClearTagsAndCategiry ( int p ) : void
p int
Результат void
        public ActionResult EditWiki(string Naslov, string Content, string jsonTag, string jsonKat, int? WikiId)
        {
            if (WikiId.HasValue)
            {
                Article a;
                using (DBBL Baza = new DBBL())
                {
                    a = Baza.GetWikiByID(WikiId.Value);

                    a.Name = Naslov;
                    a.Content = Server.HtmlDecode(Content).Replace("'", "'").Trim();
                    a.CreatorIP = this.HttpContext.Request.GetIpAdresa();
                    a.CreatorUserAgent = this.HttpContext.Request.UserAgent;
                    a.DatePublish = DateTime.Now;
                    a.GUID = Guid.NewGuid();
                    a.IsActive = true;
                    a.Views = 0;
                    a.IsPublish = true;
                    a.UserID = Autorizacija.Autorizacija.GetCurrentUser(this.HttpContext).UserID;

                    var ListaTagova = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Json.Tag>>(jsonTag);
                    var ListaKategorija = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Models.Json.Kategorija>>(jsonKat);

                    Baza.ClearTagsAndCategiry(a.ArticlesID);

                    List<Igman.DB.DAL.Tag> listTempTag = SinhronyzeWithDB(ListaTagova.Where(x => x.TagID == "-1").ToList(), ListaTagova.Where(x => x.TagID != "-1").ToList());
                    List<Category> listaKategorija = SinhronyzeWithDB(ListaKategorija);

                    a.Categories = new List<Category>(listaKategorija);
                    a.Tags = new List<Igman.DB.DAL.Tag>(listTempTag);

                    a = Baza.EditWiki(a);

                    #region Lucine
                    LuceneEngine.LuceneDbEngine ldbe = new LuceneEngine.LuceneDbEngine();
                    ldbe.UpdateWiki(a);
                    #endregion

                    TempData["wikiSuccess"] = true;
                    return RedirectToRoute("Wiki-Edit", new { id = a.ArticlesID });

                }
            }
            return RedirectToAction("index", "Articles");
        }