示例#1
0
        public string addReportCard(ReportCard reportCard)
        {
            int id;

            try
            {
                id = objUserInfoDAL.getExamReportMappingid(reportCard.erm_institution_id, reportCard.erm_class_id, reportCard.erm_section_id, reportCard.exam_term);
                if (id == 0)
                {
                    return("Alraedy this student created a report card ");
                }
                else
                {
                    id = objUserInfoDAL.getExamReportMappingid(reportCard.erm_institution_id, reportCard.erm_class_id, reportCard.erm_section_id, reportCard.exam_term);
                    reportCard.erm_id = id;
                    objUserInfoDAL.addReportCard(reportCard);
                    return("Success");
                }
            }
            catch (Exception ex)
            {
                CubitExceptionUtility.CubitExceptionLog(ex.Message + "BAL: Error while storing Post details" + ex.StackTrace + " " + ex.InnerException, this.GetType().BaseType.Name.ToString(), DateTime.Now.ToLongTimeString(), DateTime.Now.ToLongDateString());
                return("Error");
            }
        }