public async Task <IActionResult> UpdateSupplier(Supplier entity)
        {
            try {
                if (entity != null)
                {
                    entity.Address.AddressType = "Supplier";
                    var res = await _repo.UpdateSupplierAsync(entity);

                    if (res)
                    {
                        return(Ok("Record Updated"));
                    }
                    else
                    {
                        return(BadRequest("Supplier not found in system! Record not updated!"));
                    }
                }
                return(BadRequest("Supplier can not be null."));
            } catch (Exception ex) {
                throw;
            }
        }