Exemplo n.º 1
0
        public ActionResult Create(CategoryDTO obj)
        {
            try
            {
                MyRepository repository = new MyRepository();
                repository.AddCategory(obj);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }