Ejemplo n.º 1
0
        public ActionResult Insert()
        {
            var model = new T();

            if (TryUpdateModel(model))
            {
                var data = Mapper.Map <T>(model);
                _service.Add(data);
            }
            return(IndexAjax());
        }