Пример #1
0
        public async Task <ActionResult> UpdateDocuments(DataContracts.ViewModels.User.Documents documents)
        {
            var res = await _userManager.UpdateDocuments(documents, currentUsers.Id);

            return(Ok(new ResponseViewModel <bool>
            {
                Data = res,
                Message = res ? TazzerCleanConstants.SavedSuccess : TazzerCleanConstants.GeneralError
            }));
        }
Пример #2
0
 public async Task <bool> UpdateDocuments(DataContracts.ViewModels.User.Documents documents, Guid userId)
 {
     return(await _userRepository.UpdateUserDocuments(documents, userId));
 }