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); }
/// <summary> /// update method to update the records of the student datatable /// </summary> public void UpdateStudent(StdDTOcs user) { obj.UpdateStudentVal(map.GetModel(user)); }
/// <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)); }
/// <summary> /// add method for performing add operations in our studentform /// </summary> public void AddStudent(StdDTOcs em) { obj.AddStudentVal(map.GetModel(em)); }