Пример #1
0
        public ActionResult AddSector(Sector newmodel, HttpPostedFileBase uploadfile, HttpPostedFileBase uploadimage)
        {
            FillLanguagesList();

            if (ModelState.IsValid)
            {
                newmodel.PageSlug      = Utility.SetPagePlug(newmodel.Name);
                newmodel.TimeCreated   = DateTime.Now;
                ViewBag.ProcessMessage = SectorManager.AddSector(newmodel);
                ModelState.Clear();

                return(View());
            }
            else
            {
                return(View());
            }
        }