Пример #1
0
 /// <summary>
 ///  Create web model from entity [DropDown]
 /// </summary>
 public static BusinessLegalStatusDropDown CreateFrom(this DomainModels.BusinessLegalStatus source)
 {
     return(new BusinessLegalStatusDropDown
     {
         BusinessLegalStatusId = source.BusinessLegalStatusId,
         BusinessLegalStatusCodeName = source.BusinessLegalStatusCode + " - " + source.BusinessLegalStatusName
     });
 }
Пример #2
0
 /// <summary>
 /// Crete From Domain model
 /// </summary>
 public static BusinessLegalStatus CreateFromm(this DomainModels.BusinessLegalStatus source)
 {
     return(new BusinessLegalStatus
     {
         BusinessLegalStatusId = source.BusinessLegalStatusId,
         BusinessLegalStatusCode = source.BusinessLegalStatusCode,
         BusinessLegalStatusName = source.BusinessLegalStatusName,
         BusinessLegalStatusDescription = source.BusinessLegalStatusDescription
     });
 }