public async Task <ActionResult <Suppliers> > GetSupplier(int supplierId)
        {
            var suppliersEntity = await _suppliersRepository.GetSupplier(supplierId);

            var _results = _mapper.Map <Suppliers>(suppliersEntity);

            return(Ok(_results));
        }
        protected async Task UpdateDataGridViewOrders()
        {
            var orders = await _ordersRepository.GetOrders();

            dataGridViewOrders.Rows.Clear();
            var columnWidth = orders.Count > 8 ? 200 : 206;

            dataGridViewOrders.Columns[1].Width = columnWidth;
            dataGridViewOrders.Columns[3].Width = columnWidth;
            dataGridViewOrders.Columns[5].Width = columnWidth;
            foreach (var order in orders)
            {
                var supplierName = (await _suppliersRepository.GetSupplier(order.SupplierId)).Name;
                var ordererName  = (await _employeesRepository.GetEmployee(order.OrdererId)).Name;
                var finisherName = order.FinisherId == null
                    ? ""
                    : (await _employeesRepository.GetEmployee((int)order.FinisherId)).Name;
                dataGridViewOrders.Rows.Add(new[]
                {
                    order.Id.ToString(),
                    supplierName,
                    order.Cost.ToString(),
                    ordererName,
                    order.TimeOrdered.ToString(),
                    finisherName,
                    order.TimeCompleted.ToString()
                });
            }
            ClearDataGridViewOrdersSelection();
        }