public string delete(int s_id = -1, int c_id = -1) { if(s_id < 0 || c_id < 0) { return false.ToJSON(); } int school_id = SessionHandler.GetSchoolID(); int user_id = SessionHandler.GetUserID(); StudentFee sf = new StudentFee(); sf.updated_by = user_id; sf.paid_status = FeePaidStatus.UNPAID; sf.student_id = s_id; sf.class_id = c_id; sf.school_id = school_id; _fsd.Delete(sf); return false.ToJSON(); }
private bool insertStudentFeeDetail(string type , int student_id, int class_id,int session_id,string month="") { StudentFee stdFee = new StudentFee(); stdFee.paid_fee = 0; stdFee.paid_status = FeePaidStatus.UNPAID; stdFee.school_id = SessionHandler.GetSchoolID(); stdFee.class_id = class_id; stdFee.updated_by = stdFee.created_by = SessionHandler.GetUserID(); stdFee.type = type; stdFee.student_id = student_id; stdFee.fee = 0; stdFee.session_id = session_id; stdFee.month = month; var fees = new StudentFeeDetails(); fees.Insert(stdFee); return true; }