Beispiel #1
0
 /// <summary>
 ///  Create web model[DropDown] from entity
 /// </summary>
 public static DiscountTypeDropDown CreateFrom(this Cares.Models.DomainModels.DiscountType source)
 {
     return(new DiscountTypeDropDown
     {
         DiscountTypeId = source.DiscountTypeId,
         DiscountTypeCodeName = source.DiscountTypeCode + " - " + source.DiscountTypeName
     });
 }
Beispiel #2
0
 /// <summary>
 ///  Create from domain model to web model
 /// </summary>
 public static DiscountType CreateFromm(this Cares.Models.DomainModels.DiscountType source)
 {
     return(new DiscountType
     {
         DiscountTypeId = source.DiscountTypeId,
         DiscountTypeCode = source.DiscountTypeCode,
         DiscountTypeName = source.DiscountTypeName,
         DiscountTypeDescrition = source.DiscountTypeDescription
     });
 }