Exemplo n.º 1
0
        public ActionResult Update([DataSourceRequest] DataSourceRequest request, ViewModelType model)
        {
            var entity = this.GetById(model.Name) as DatabaseModelType;

            this.BaseUpdate(model.GetEntityModel(entity));
            return(this.GridOperation(request, model));
        }
Exemplo n.º 2
0
        public ActionResult Create([DataSourceRequest] DataSourceRequest request, ViewModelType model)
        {
            var id = this.BaseCreate(model.GetEntityModel());

            model.Name = (string)id;
            return(this.GridOperation(request, model));
        }
Exemplo n.º 3
0
 public ActionResult Update([DataSourceRequest]DataSourceRequest request, ViewModelType model)
 {
     var entity = this.GetById(model.Name) as DatabaseModelType;
     this.BaseUpdate(model.GetEntityModel(entity));
     return this.GridOperation(request, model);
 }
Exemplo n.º 4
0
 public ActionResult Create([DataSourceRequest]DataSourceRequest request, ViewModelType model)
 {
     var id = this.BaseCreate(model.GetEntityModel());
     model.Name = (string)id;
     return this.GridOperation(request, model);
 }