예제 #1
0
        public ActionResult Add(TubeRehber.Model.Entities.Channel data, TubeRehber.Model.Entities.Category data2)
        {
            CategoryName = data2.CategoryName;


            data.Status = TubeRehber.Core.Entity.Enum.Status.Active;
            TubeRehber.Model.Entities.Category category = _categoryService.GetCategoryByCategoryName(CategoryName);
            data.CategoryID = category.ID;



            _channelService.Add(data);
            _channelService.Save();



            return(RedirectToAction("Index"));
        }