public JsonResponse CreateQuarter(GoalQuarters QuarterDetail)
 {
     JsonResponse js = new JsonResponse();
     try
     {
         var Cq = CheckQuarter(QuarterDetail.GoalQuarter, QuarterDetail.QuarterYear);
         if (Cq != null)
         {
             var qurter = _repository.CreateQuarterDB(QuarterDetail);
             if (qurter)
             {
                 js.message = "Quarter created successfully!";
                 js.success = true;
                 return js;
             }
             else
             {
                 js.message = "Error while creating quarter!";
                 js.success = false;
                 return js;
             }
         }
         else
         {
             js.message = "Quarter Is already Added!";
             js.success = false;
             return js;
         }
     }
     catch
     {
         this.ValidationErrors.Add("ERR_DEL_QUA", "Error Occured while Creating Quarter!");
         return null;
     }
 }
 public int DeleteGoal(int[] goalid)
 {
     JsonResponse js = new JsonResponse();
     try
     {
         int count = 0;
         foreach (int i in goalid)
         {
             int res = _goalRepository.DeleteGoalMasterDB(i);
             if (res > 0) count++;
         }
         return count;
     }
     catch
     {
         this.ValidationErrors.Add("ERR_DEL_GOAL", "Error Occured while Deleting Goal!");
         return 0;
     }
 }