public static IOBalanceDBV2Entity.Supplier DtoToEntity(this SupplierDto dto) { IOBalanceDBV2Entity.Supplier entity = null; if (!dto.IsNull()) { entity = new IOBalanceDBV2Entity.Supplier { SupplierID = dto.SupplierId, SupplierCode = dto.SupplierCode, SupplierName = dto.SupplierName, CreatedBy = dto.CreatedBy, DateCreated = dto.DateCreated, DateUpdated = dto.DateUpdated, UpdatedBy = dto.UpdatedBy }; } return(entity); }
public static IOBalanceEntity.Supplier DtoToEntity(this SupplierDto dto) { IOBalanceEntity.Supplier entity = null; if (!dto.IsNull()) { entity = new IOBalanceEntity.Supplier() { SupplierName = dto.SupplierName, SupplierCode = dto.SupplierCode, IsActive = true, CreatedBy = dto.CreatedBy, DateCreated = System.DateTime.Now, DateUpdated = dto.DateUpdated, UpdatedBy = dto.UpdatedBy }; } return(entity); }