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