Beispiel #1
0
        public async Task <IResponseOutput> UpdateGroupAsync(DocumentUpdateGroupInput 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));
        }
Beispiel #2
0
 public async Task <IResponseOutput> UpdateGroup(DocumentUpdateGroupInput input)
 {
     return(await _documentServices.UpdateGroupAsync(input));
 }