protected void Page_Load(object sender, EventArgs e)
        {
            Uri u = HttpContext.Current.Request.Url;

            ModelId = HttpUtility.ParseQueryString(u.Query).Get("id");

            var customerb2bmodel = controller.GetData(ModelId);

            var layoutmodel = controller.GetCoreLayoutData(customerb2bmodel);

            LayoutB2BCustomer.DataSource = layoutmodel;
            LayoutB2BCustomer.DataBind();

            var modelbookingprocess = controller.GetDataByProviderId(customerb2bmodel.ProviderId);

            GridBookingProcessView.DataSource = modelbookingprocess;
            GridBookingProcessView.DataBind();

            var model = controller.GetData(ModelId);

            GridNoteView.DataSource = model.Notes;
            GridNoteView.DataBind();

            GridProviderContactView.DataSource = model.Contacts;
            GridProviderContactView.DataBind();
        }
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            string PersonaliIdentificationNumber = LayoutB2BCustomer.GetNestedControlValueByFieldName("PersonalIdentificationNumber") == null ? string.Empty : LayoutB2BCustomer.GetNestedControlValueByFieldName("PersonalIdentificationNumber").ToString();
            string Name         = LayoutB2BCustomer.GetNestedControlValueByFieldName("Name") == null ? string.Empty : LayoutB2BCustomer.GetNestedControlValueByFieldName("Name").ToString();
            string Bank         = LayoutB2BCustomer.GetNestedControlValueByFieldName("Bank") == null ? string.Empty : LayoutB2BCustomer.GetNestedControlValueByFieldName("Bank").ToString();
            string IBAN         = LayoutB2BCustomer.GetNestedControlValueByFieldName("IBAN") == null ? string.Empty : LayoutB2BCustomer.GetNestedControlValueByFieldName("IBAN").ToString();
            string Country      = LayoutB2BCustomer.GetNestedControlValueByFieldName("Country") == null ? string.Empty : LayoutB2BCustomer.GetNestedControlValueByFieldName("Country").ToString();
            string City         = LayoutB2BCustomer.GetNestedControlValueByFieldName("City") == null ? string.Empty : LayoutB2BCustomer.GetNestedControlValueByFieldName("City").ToString();
            string Address      = LayoutB2BCustomer.GetNestedControlValueByFieldName("Address") == null ? string.Empty : LayoutB2BCustomer.GetNestedControlValueByFieldName("Address").ToString();
            int    ProviderId   = LayoutB2BCustomer.GetNestedControlValueByFieldName("ProviderId") == null ? 0 : (int)LayoutB2BCustomer.GetNestedControlValueByFieldName("ProviderId");
            string BookingEmail = LayoutB2BCustomer.GetNestedControlValueByFieldName("BookingEmail") == null ? string.Empty : LayoutB2BCustomer.GetNestedControlValueByFieldName("BookingEmail").ToString();
            string Title        = LayoutB2BCustomer.GetNestedControlValueByFieldName("Title") == null ? string.Empty : LayoutB2BCustomer.GetNestedControlValueByFieldName("Title").ToString();

            var model = controller.GetData(ModelId);

            model.IBAN = IBAN;
            model.Name = Name;
            model.Bank = Bank;
            model.PersonalIdentificationNumber = PersonaliIdentificationNumber;
            model.Country      = Country;
            model.City         = City;
            model.Address      = Address;
            model.Title        = Title;
            model.ProviderId   = ProviderId;
            model.BookingEmail = BookingEmail;

            controller.Update(model);
        }