public Variant CreateVariant(Variant variant) { var newVariant = new infrastructure.Data.Models.Variant { Variant1 = variant.Name, VariantType = variant.Type }; _collectionsRepository.CreateVariant(newVariant); return(_mapper.Map <Variant>(newVariant)); }