Example #1
0
 public AttendanceHeader Add(AttendanceHeader pt)
 {
     _unitOfWork.Repository <AttendanceHeader>().Insert(pt);
     return(pt);
 }
Example #2
0
 public void Delete(AttendanceHeader pt)
 {
     _unitOfWork.Repository <AttendanceHeader>().Delete(pt);
 }
Example #3
0
 public void Update(AttendanceHeader pt)
 {
     pt.ObjectState = ObjectState.Modified;
     _unitOfWork.Repository <AttendanceHeader>().Update(pt);
 }
Example #4
0
 public AttendanceHeader Create(AttendanceHeader pt)
 {
     pt.ObjectState = ObjectState.Added;
     _unitOfWork.Repository <AttendanceHeader>().Insert(pt);
     return(pt);
 }