public ActionResult Create([DataSourceRequest]DataSourceRequest request, ViewModelType model)
 {
     var databaseModel = model.GetEntityModel();
     model.Id = (int)this.BaseCreate(databaseModel);
     this.UpdateAuditInfoValues(model, databaseModel);
     return this.GridOperation(request, model);
 }
        public ActionResult Create([DataSourceRequest] DataSourceRequest request, ViewModelType model)
        {
            var databaseModel = model.GetEntityModel();

            model.Id = (int)this.BaseCreate(databaseModel);
            this.UpdateAuditInfoValues(model, databaseModel);
            return(this.GridOperation(request, model));
        }
        public ActionResult Update([DataSourceRequest] DataSourceRequest request, ViewModelType model)
        {
            var entity = this.GetById(model.Id) as DatabaseModelType;

            this.BaseUpdate(model.GetEntityModel(entity));
            this.UpdateAuditInfoValues(model, entity);
            return(this.GridOperation(request, model));
        }
 public ActionResult Update([DataSourceRequest]DataSourceRequest request, ViewModelType model)
 {
     var entity = this.GetById(model.Id) as DatabaseModelType;
     this.BaseUpdate(model.GetEntityModel(entity));
     this.UpdateAuditInfoValues(model, entity);
     return this.GridOperation(request, model);
 }
 public ActionResult Create([DataSourceRequest]DataSourceRequest request, ViewModelType model)
 {
     this.BaseCreate(model.GetEntityModel());
     return this.GridOperation(request, model);
 }