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));
        }
 public ActionResult Update([DataSourceRequest]DataSourceRequest request, ModelType model)
 {
     return this.BaseUpdate(request, model.ToEntity);
 }
Exemplo n.º 4
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.º 5
0
 public ActionResult Destroy([DataSourceRequest]DataSourceRequest request, ViewModelType model)
 {
     this.BaseDestroy(model.Name);
     return this.GridOperation(request, model);
 }
Exemplo n.º 6
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.º 7
0
 public ActionResult Destroy([DataSourceRequest] DataSourceRequest request, ViewModelType model)
 {
     this.BaseDestroy(model.Name);
     return(this.GridOperation(request, model));
 }