public string update(SchoolFeeStructure sfs)
        {
            updateFee(FeeType.ADMISSION_FEE, "update",sfs.AdmissionFee);
            updateFee(FeeType.EXAMINATION_FEE,"update" , sfs.ExaminationFee);
            updateFee(FeeType.OTHER_CHARGES, "update", sfs.OtherCharges);

            return true.ToJSON();
        }
 public static SchoolFeeStructure GetFeeStructure(int school_id)
 {
     var fees = new FeeStructureDetail().GetAll(school_id);
     SchoolFeeStructure feeStr = new SchoolFeeStructure();
     foreach (var fee in fees)
     {
         if (fee.type == FeeType.EXAMINATION_FEE)
             feeStr.ExaminationFee = fee.fee;
         else if (fee.type == FeeType.ADMISSION_FEE)
             feeStr.AdmissionFee = fee.fee;
         else if (fee.type == FeeType.OTHER_CHARGES)
             feeStr.OtherCharges = fee.fee;
     }
     return feeStr;
 }