private async void SaveButton_Click(object sender, RoutedEventArgs e)
 {
     if (ValidData())
     {
             GetAreaDetails();
             if (AreaService.InsertArea(_area) == 1)
             {
                 await MainWindow.Instance.ShowMessageAsync(Messages.TTL_MSG, "Area Added Success!", MessageDialogStyle.Affirmative);
                 _area = null;
                 _area=new area();
                 GridAddArea.DataContext = _area;
             }
             else
             {
                 await MainWindow.Instance.ShowMessageAsync(Messages.TTL_MSG, "Please check Deatails", MessageDialogStyle.Affirmative);
             }
     }
     else
     {
         await MainWindow.Instance.ShowMessageAsync(Messages.TTL_MSG, "Please check errors", MessageDialogStyle.Affirmative);
     }
 }
 private AddArea()
 {
     InitializeComponent();
     _area=new area();
     GridAddArea.DataContext = _area;
 }