public async Task <ApiResult> GetInfo(int id) { if (id < 1) { return(ApiResult.OK(new Model.Entity.SysUserView())); } var data = await _sysUserServices.GetModelViewAsync <Model.Entity.SysUserView>(id); if (data == null) { data = new Model.Entity.SysUserView(); } else { data.Password = "******"; } return(ApiResult.OK(data)); }
public async Task <ApiResult> Post(Model.Entity.SysUserView model) { var data = await _sysUserServices.ModifyAsync(model); return(ApiResult.OK(data)); }