public DAL.Student GetModel(StdDTOcs std)
 {
     DAL.Student obj = new DAL.Student();
     obj.StudentId = std.studentid;
     obj.FirstName = std.firstnm;
     obj.LastName  = std.lastnm;
     obj.MobileNo  = std.mob;
     obj.Gender    = std.gender;
     obj.State     = std.state;
     obj.City      = std.city;
     return(obj);
 }
Example #2
0
        /// <summary>
        /// update method to update the records of the student datatable
        /// </summary>

        public void UpdateStudent(StdDTOcs user)
        {
            obj.UpdateStudentVal(map.GetModel(user));
        }
Example #3
0
        /// <summary>
        /// delete method to delete data from the student datatable
        /// </summary>
        /// <param name="user"></param>

        public void DeleteStudent(StdDTOcs user)
        {
            obj.DeleteStudentVal(map.GetModel(user));
        }
Example #4
0
        /// <summary>
        /// add method for performing add operations in our studentform
        /// </summary>

        public void AddStudent(StdDTOcs em)
        {
            obj.AddStudentVal(map.GetModel(em));
        }