public static dataModel.PackageType ToDataModel(this coreModel.PackageType packageType)
        {
            var retVal = new dataModel.PackageType();

            retVal.InjectFrom(packageType);
            return(retVal);
        }
 public virtual coreModel.PackageType ToModel(coreModel.PackageType packageType)
 {
     packageType.Id          = Id;
     packageType.Name        = Name;
     packageType.Length      = Length;
     packageType.Width       = Width;
     packageType.Height      = Height;
     packageType.MeasureUnit = MeasureUnit;
     return(packageType);
 }
        public virtual dataModel.PackageType FromModel(coreModel.PackageType packageType, PrimaryKeyResolvingMap pkMap)
        {
            pkMap.AddPair(packageType, this);

            Id          = packageType.Id;
            Name        = packageType.Name;
            Length      = packageType.Length;
            Width       = packageType.Width;
            Height      = packageType.Height;
            MeasureUnit = packageType.MeasureUnit;
            return(this);
        }
 public IHttpActionResult CreatePackageType(coreModel.PackageType packageType)
 {
     _commerceService.UpsertPackageTypes(new[] { packageType });
     return(StatusCode(HttpStatusCode.NoContent));
 }