示例#1
0
        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);
        }
示例#2
0
        public SupplierService(IInventoryIORepository <dbentities.Supplier> supplierService)
        {
            this._supplierService = supplierService;

            this.suppliers = new dbentities.Supplier();
        }