private void init()
 {
     DisplayName = "اهداف کلی";
     PeriorityTypeList=new ObservableCollection<PeriorityType>();
     SelectedPeriorityType=new PeriorityType();
     SelectedOveralObjective=new CrudOveralObjective();
     SelectedOveralObjectiveList=new SummeryOveralObjective();
 }
 public void UpdateSelectedOveralObjective(Action<SummeryOveralObjective, Exception> action, SummeryOveralObjective selectedOveralObjectiveList,
     PeriorityType selectedPeriorityType)
 {
     var task = overalObjectiveList.Single(c => c.Id == selectedOveralObjectiveList.Id);
     task.Title = selectedOveralObjectiveList.Title;
     task.Description = selectedOveralObjectiveList.Description;
    
 }
 public void PeriorityTypeList(Action<List<PeriorityType>, Exception> action, PeriorityType selectedPeriorityType)
 {
     var sel = periorityTypeList.Single(c => c.Id==1);
     selectedPeriorityType.Id = sel.Id;
     selectedPeriorityType.Title = sel.Title;
     selectedPeriorityType.Description = sel.Description;
     action(periorityTypeList, null);
 }