public ApiSupplier Get(int ID) { ISupplierManager SupplierManager = UnityResolver.Resolve <ISupplierManager>(); Supplier supplierModel = SupplierManager.FindSupplierById(ID); ApiSupplier supplier = new ApiSupplier { ID = supplierModel.ID, name = supplierModel.name, address = supplierModel.address, company = supplierModel.company, telephone = supplierModel.telephone }; return(supplier); }