Ejemplo n.º 1
0
 public async Task <JsonResult> SubmitConfig(BootConfigDto model)
 {
     if (!ModelState.IsValid)
     {
         throw new UserFriendlyException(base.GetModelStateErrorInfo());
     }
     this._iPhysiqueAppService.SaveConfig(model);
     return(Json(new AjaxResponse {
     }));
 }
Ejemplo n.º 2
0
 public void SaveConfig(BootConfigDto model)
 {
     this._bootConfigRepository.InsertOrUpdate(Mapper.Map <Physique_BootConfig>(model));
 }