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

            this.BaseUpdate(model.GetEntityModel(entity));
            return(this.GridOperation(request, model));
        }
Esempio n. 2
0
 public ActionResult Create([DataSourceRequest]DataSourceRequest request, ViewModelType model)
 {
     model.RoleId = Guid.NewGuid().ToString();
     this.BaseCreate(model.GetEntityModel());
     return this.GridOperation(request, model);
 }
Esempio n. 3
0
 public ActionResult Update([DataSourceRequest]DataSourceRequest request, ViewModelType model)
 {
     var entity = this.GetById(model.RoleId) as DatabaseModelType;
     this.BaseUpdate(model.GetEntityModel(entity));
     return this.GridOperation(request, model);
 }
Esempio n. 4
0
 public ActionResult Destroy([DataSourceRequest]DataSourceRequest request, ViewModelType model)
 {
     this.BaseDestroy(model.RoleId);
     return this.GridOperation(request, model);
 }
Esempio n. 5
0
 public ActionResult Destroy([DataSourceRequest] DataSourceRequest request, ViewModelType model)
 {
     this.BaseDestroy(model.RoleId);
     return(this.GridOperation(request, model));
 }
Esempio n. 6
0
 public ActionResult Create([DataSourceRequest] DataSourceRequest request, ViewModelType model)
 {
     model.RoleId = Guid.NewGuid().ToString();
     this.BaseCreate(model.GetEntityModel());
     return(this.GridOperation(request, model));
 }
 public ActionResult Destroy([DataSourceRequest]DataSourceRequest request, ModelType model)
 {
     return this.BaseDestroy(request, model.ToEntity);
 }
        public ActionResult Create([DataSourceRequest]DataSourceRequest request, ModelType model)
        {
            model.RoleId = Guid.NewGuid().ToString();

            return this.BaseCreate(request, model.ToEntity);
        }