/// <summary>
        /// Converts the input ChequeMaster object to its model object type
        /// </summary>
        /// <param name="cheque"></param>
        /// <returns></returns>
        private ChequeInwardsModel ConvertToCheque(CHQ_Cheques_Master cheque, int SerialNo)
        {
            if (cheque == null)
            {
                return(new ChequeInwardsModel());
            }
            StudentBusinessLogic bussiness = new StudentBusinessLogic();

            //STUD_Students_Master student = bussiness.GetAllStudents().Where(S => S.Student_ID == cheque.Student_ID).FirstOrDefault();
            //GEN_Sections_Lookup sec = bussiness.GetAllSections().Where(S => S.Section_Id == cheque.Section_ID).FirstOrDefault();

            ChequeInwardsModel cheq = new ChequeInwardsModel();

            cheq.SerialNo     = SerialNo;
            cheq.Student_ID   = cheque.Student_ID;
            cheq.Bank         = cheque.Bank;
            cheq.ChequeNo     = cheque.ChequeNo;
            cheq.Cheque_ID    = cheque.Cheque_ID;
            cheq.ChqAmount    = cheque.ChqAmount;
            cheq.ChqStatus_ID = cheque.ChqStatus_ID;
            cheq.EnteredBy    = cheque.EnteredBy;
            cheq.EnteredOn    = cheque.EnteredOn;
            cheq.InwardDate   = cheque.InwardDate;
            cheq.IsActive     = cheque.IsActive;
            cheq.Login_ID     = cheque.Login_ID;
            cheq.Remarks      = cheque.Remarks;
            cheq.Section_ID   = cheque.Section_ID;
            cheq.RegNo        = CurrentChequeInwardModel.RegNo;
            cheq.StudentName  = CurrentChequeInwardModel.StudentName;
            cheq.Section      = CurrentChequeInwardModel.Section;

            cheq.User = LoginBusinessLogic.GetUserByID(LoginBusinessLogic.GetUserIdByLoginId((decimal)cheque.Login_ID)).Username;
            return(cheq);
        }