public async Task <IResponseOutput> UpdateContentAsync(DocumentUpdateContentInput 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> UpdateContent(DocumentUpdateContentInput input) { return(await _documentServices.UpdateContentAsync(input)); }