Example #1
0
        private static async Task GetMaterialAsync()
        {
            const string MATERIAL_CODE = "1DACTV76A201000002";

            IMaterialManager manager = ServiceProvider.GetRequiredService <IMaterialManager>();
            Material         result  = await manager.GetMaterialWithSubTableAsync(MATERIAL_CODE);

            manager.Print(result);
        }
Example #2
0
        public async Task <IActionResult> GetMaterial()
        {
            try
            {
                const string MATERIAL_CODE = "1DACTV76A201000002";

                IMaterialManager manager = _serviceProvider.GetRequiredService <IMaterialManager>();
                Material         result  = await manager.GetMaterialWithSubTableAsync(MATERIAL_CODE);

                return(View(result));
            }
            catch (Exception e)
            {
                _logger.LogError(e, "GetMaterial Execution Error");
                throw;
            }
        }