public async Task<ResultUpdateOutput> UpdateUserClientApp(UpdateUserAppInput input) { ResultUpdateOutput result = await _userBll.UpdateUserApp(input, AppApiType.ClientApi); return result; }
public Task<ResultUpdateOutput> UpdateUserApp(UpdateUserAppInput input, AppApiType appType) { Mapper.CreateMap<UpdateUserAppInput, UserApp>(); UserApp userApp = Mapper.Map<UserApp>((object)input); userApp.ApiType = appType; ResultUpdateOutput result = new ResultUpdateOutput() { Status = 1 }; if (this._userTable.UpdateUserApp(userApp) > 0) result.Status = 0; return Task.FromResult<ResultUpdateOutput>(result); }