Exemplo n.º 1
0
 public bool Update(Staff item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     if (StaffDBManager.Update(item) == 0)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Exemplo n.º 2
0
        public Staff AddStaff(Staff item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            if (StaffDBManager.AddStaff(item) == 0)
            {
                return(null);
            }
            else
            {
                return(item);
            }
        }
Exemplo n.º 3
0
 public Staff GetById(int staff_id)
 {
     return(StaffDBManager.GetStaffById(staff_id));
 }
Exemplo n.º 4
0
 public IEnumerable <Staff> GetAll()
 {
     return(StaffDBManager.GetAllStaff().Cast <Staff>());
 }