public static async Task <EditModalWindow> Create(ClinicViewModel model)
        {
            EditModalWindow modal = new EditModalWindow(model);
            await modal.InitializeData();

            return(modal);
        }
        public override async void Edit(object selectedItem)
        {
            DataRowView     item   = (DataRowView)selectedItem;
            ClinicViewModel clinic = Mapping.Mapper.Map <ClinicViewModel>(item);

            EditModalWindow modal = await EditModalWindow.Create(clinic);

            _ = modal.ShowDialog();
            DataGridControl.InformAboutStatus(modal.OperationStatus);
        }