public Task <Response <IGCFileRecordDTO> > InsertAsync(IGCFileRecordDTO fileRecordDTO)
 {
     return(Response <IGCFileRecordDTO> .CatchInvalidOperationExceptionAndMap(
                _IGCFileRecordRepository.InsertAsync(
                    _mapper.Map <IGCFileRecordDTO, IGCFileRecord>(fileRecordDTO)
                    )
                , _mapper));
 }
        public Task <Response <IGCFileRecordDTO> > InsertAsync(string path)
        {
            var userIDResponse = _userService.GetCurrentUserID();

            if (!userIDResponse.Success)
            {
                return(Task.FromResult(new Response <IGCFileRecordDTO>(userIDResponse.Message)));
            }
            var fileRecord = new IGCFileRecordDTO()
            {
                UserID   = userIDResponse.Value,
                FilePath = path
            };

            return(InsertAsync(fileRecord));
        }