public async Task <IResponseOutput> UpdateMenuAsync(DocumentUpdateMenuInput input) { var result = false; if (input != null && input.Id > 0) { var entity = await _DocumentRepository.GetAsync(input.Id); entity = _mapper.Map(input, entity); result = (await _DocumentRepository.UpdateAsync(entity)) > 0; } return(ResponseOutput.Result(result)); }
public async Task <IResponseOutput> UpdateMenu(DocumentUpdateMenuInput input) { return(await _documentServices.UpdateMenuAsync(input)); }