/// <summary> /// 更改应用领域内容 /// </summary> /// <param name="field"></param> /// <returns></returns> public async Task <ResponseModel> UpdateField(yr_field field) { var query = await Db.Updateable(field).Where(c => c.id == 1).ExecuteCommandAsync(); if (query >= 1) { return(new ResponseModel { code = 200, result = "修改成功~" }); } else { return(new ResponseModel { code = 0, result = "修改失败~" }); } }
public async Task <JsonResult> UpdateField(yr_field field) { var res = await _syshomeService.UpdateField(field); return(Json(res)); }