public AttendanceHeader Add(AttendanceHeader pt) { _unitOfWork.Repository <AttendanceHeader>().Insert(pt); return(pt); }
public void Delete(AttendanceHeader pt) { _unitOfWork.Repository <AttendanceHeader>().Delete(pt); }
public void Update(AttendanceHeader pt) { pt.ObjectState = ObjectState.Modified; _unitOfWork.Repository <AttendanceHeader>().Update(pt); }
public AttendanceHeader Create(AttendanceHeader pt) { pt.ObjectState = ObjectState.Added; _unitOfWork.Repository <AttendanceHeader>().Insert(pt); return(pt); }