Exemplo n.º 1
0
        /// <summary>
        /// Update data
        /// </summary>
        /// <param name="staff"></param>
        /// <returns>No. of lines affected</returns>
        public int Update(Staff staff)
        {
            StaffManager staffManager = new StaffManager();

            return(staffManager.Update(staff));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Delete data
        /// </summary>
        /// <param name="staff"></param>
        /// <returns>No. of lines affected</returns>
        public int Delete(Staff staff)
        {
            StaffManager staffManager = new StaffManager();

            return(staffManager.DeleteByName(staff.Name));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Add data
        /// </summary>
        /// <param name="staff"></param>
        /// <returns>No. of lines affected</returns>
        public int Add(Staff staff)
        {
            StaffManager staffManager = new StaffManager();

            return(staffManager.AddNew(staff));
        }