Ejemplo n.º 1
0
        //Created by Prasana on 18.07.2013
        /// <summary>
        /// Creates the student mark.
        /// </summary>
        /// <returns></returns>
        public static StudentMark CreateStudentMark()
        {
            var studentMark = new StudentMark
            {
                RollNumber = 4,
                Language   = 100,
                English    = 100,
                Maths      = 100,
                Science    = 100,
                Social     = 100,
                Result     = 'P',
                Remarks    = "Outstanding",
                Total      = 500,
                Percentage = 100,
                Created_By = 1
            };

            studentMark.StudentMarkId = studentDataService.AddStudentMark(studentMark);
            return(studentMark);
        }
 //Created by Prasana on 18.07.2013
 /// <summary>
 /// Adds the student mark.
 /// </summary>
 /// <param name="studentMark">The student mark.</param>
 /// <returns>StudentMark</returns>
 public int AddStudentMark(StudentMark studentMark)
 {
     return(studentDataService.AddStudentMark(studentMark));
 }