public ActionResult AllApplications()
        {
            var         obj          = GetData();
            var         dbinstitutes = db.BI_Affi_ins_pop_visited_institute(Convert.ToInt32(obj.Institute_Id)).ToList();
            ComFeedBack comfb        = new ComFeedBack();

            string[] instituteName = new string[4] {
                "Faculty", "Labortries", "Library", "Other"
            };
            List <DDLComMemberCheckPoint>             checklist = new List <DDLComMemberCheckPoint>();
            List <InstituteForMembersAllApplications> ifmlist   = new List <InstituteForMembersAllApplications>();
            InstituteForMembersAllApplications        dummy     = new InstituteForMembersAllApplications();

            dummy.InstituteName = "Select Institute";
            ifmlist.Add(dummy);
            foreach (var ins in dbinstitutes)
            {
                InstituteForMembersAllApplications ifm = new InstituteForMembersAllApplications();
                ifm.InstituteId   = Convert.ToInt32(ins.Institute_ID);
                ifm.InstituteName = ins.Institute_Name;
                ifmlist.Add(ifm);
            }
            for (var i = 0; i < instituteName.Length; i++)
            {
                DDLComMemberCheckPoint ddl = new DDLComMemberCheckPoint();
                ddl.CheckName = instituteName[i];
                checklist.Add(ddl);
            }
            comfb.InstitutesDDL = ifmlist;
            comfb.CheckPoint    = checklist;
            return(View(comfb));
        }
        public ActionResult AllApplications(ComFeedBack model)
        {
            obj = GetData();
            int marks = 0;

            if (model.Performance == "Poor")
            {
                marks = 0;
            }
            else if (model.Performance == "Fair")
            {
                marks = 25;
            }
            else if (model.Performance == "Average")
            {
                marks = 50;
            }
            else if (model.Performance == "Good")
            {
                marks = 75;
            }
            else if (model.Performance == "Excellent")
            {
                marks = 100;
            }
            db.BI_insert_com_member_feedback(model.InstituteId, Convert.ToInt32(obj.Institute_Id), model.CheckName, marks, model.Recommendation, obj.Application_id, obj.Affiliation_Year);
            db.SaveChanges();
            ComMembers.Application_id = model.InstituteId;
            var         dbinstitutes = db.BI_Affi_ins_pop_visited_institute(Convert.ToInt32(obj.Institute_Id)).ToList();
            ComFeedBack comfb        = new ComFeedBack();

            string[] instituteName = new string[4] {
                "Faculty", "Labortries", "Library", "Other"
            };
            List <DDLComMemberCheckPoint>             checklist = new List <DDLComMemberCheckPoint>();
            List <InstituteForMembersAllApplications> ifmlist   = new List <InstituteForMembersAllApplications>();

            foreach (var ins in dbinstitutes)
            {
                InstituteForMembersAllApplications ifm = new InstituteForMembersAllApplications();
                ifm.InstituteId   = Convert.ToInt32(ins.Institute_ID);
                ifm.InstituteName = ins.Institute_Name;
                ifmlist.Add(ifm);
            }
            for (var i = 0; i < instituteName.Length; i++)
            {
                DDLComMemberCheckPoint ddl = new DDLComMemberCheckPoint();
                ddl.CheckName = instituteName[i];
                checklist.Add(ddl);
            }
            comfb.InstitutesDDL = ifmlist;
            comfb.CheckPoint    = checklist;
            return(View(comfb));
        }