예제 #1
0
        public async Task <CommandResult <bool> > DeleteDestination(Guid destinationId)
        {
            try
            {
                if (destinationId == Guid.Empty || destinationId == null)
                {
                    return(new CommandResult <Boolean>("Invalid destination Id"));
                }
                else
                {
                    await _destinationRepository.UpdateIsDeleted(destinationId, isDeleted : true);

                    return(new CommandResult <Boolean>(true));
                }
            }
            catch (Exception exception)
            {
                return(new CommandResult <Boolean>(exception.Message));
            }
        }