private async Task <List <ErrorsTO> > RequiredProcessId(Guid?processId)
        {
            var errors = new List <ErrorsTO>();

            if (processId == null)
            {
                errors.Add(new ErrorsTO
                {
                    Field      = "ProcessId",
                    Validation = Messaging.RequiredProcessId
                });
            }
            else if ((await _processRepository.GetByIdAsync(processId.Value)) == null)
            {
                errors.Add(new ErrorsTO
                {
                    Field      = "ProcessId",
                    Validation = Messaging.InvalidProcessId
                });
            }


            return(errors);
        }