Exemplo n.º 1
0
        public BrandName_ CreateBrandName(ProducerSubmission producerSubmission, string brandName)
        {
            var result = new BrandName_
            {
                Id   = IntegerToGuid(GetNextId()),
                Name = brandName,
                ProducerSubmissionId = producerSubmission.Id,
                ProducerSubmission   = producerSubmission
            };

            model.BrandName_Set.Add(result);

            return(result);
        }
Exemplo n.º 2
0
        public BrandName_ CreateBrandName(ProducerSubmission producerSubmission, string brandName)
        {
            var result = new BrandName_
            {
                Id = IntegerToGuid(GetNextId()),
                Name = brandName,
                ProducerSubmissionId = producerSubmission.Id,
                ProducerSubmission = producerSubmission
            };

            model.BrandName_Set.Add(result);

            return result;
        }