public IActionResult Create(SupplierCreateInputModel supplierCreateInputModel)
        {
            if (!this.ModelState.IsValid)
            {
                return(this.View());
            }

            SupplierServiceModel supplierServiceModel = supplierCreateInputModel.To <SupplierServiceModel>();

            this.suppliersService.Create(supplierServiceModel);

            return(Redirect("/"));
        }
        public async Task <IActionResult> Create(SupplierCreateInputModel createInputModel)
        {
            await this.supplierService.CreateAsync(createInputModel.To <SupplierServiceModel>());

            return(this.RedirectToAction("All", "Suppliers"));
        }