public static dbentities.Supplier DtoToEntity(this SupplierDetailRequest request) { dbentities.Supplier entity = null; if (request != null) { entity = new dbentities.Supplier { SupplierID = request.SupplierId, SupplierCode = request.SupplierCode, SupplierName = request.SupplierName, IsActive = request.IsActive, CreatedBy = request.CreatedBy, CreatedTime = request.CreatedTime, ModifiedBy = request.ModifiedBy, ModifiedTime = request.ModifiedTime }; } return(entity); }
public SupplierService(IInventoryIORepository <dbentities.Supplier> supplierService) { this._supplierService = supplierService; this.suppliers = new dbentities.Supplier(); }