Exemple #1
0
        public Dictionary <string, string> GetPostKeys()
        {
            Dictionary <string, string> values = new Dictionary <string, string>();

            values.Add("sku", Sku);
            values.Add("name", Name);
            values.Add("quantity", Quantity.ToString());
            values.Add("price", Price.ToString());
            values.Add("vat", VatPercentage.ToString());
            values.Add("unit", UnitType);
            values.Add("image", Image);
            values.Add("attributes", Attributes);
            return(values);
        }
 public static VatPercentage ToEntity(this VatPercentageModel model, VatPercentage destination)
 {
     return(AutoMapperConfiguration.Mapper.Map(model, destination));
 }
 public static VatPercentageModel ToModel(this VatPercentage entity)
 {
     return(AutoMapperConfiguration.Mapper.Map <VatPercentage, VatPercentageModel>(entity));
 }