Exemplo n.º 1
0
 public void Delete(int id)
 {
     try
     {
         _employeeDAL.Delete(id);
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="employeeDto"></param>
        /// <returns></returns>
        public int Delete(EmployeeDto employeeDto)
        {
            int       result   = 0;
            CEmployee employee = GetEmployeeByID(employeeDto.ID);

            if (employee != null)
            {
                dalSer.Delete(employee);
            }

            return(result);
        }
Exemplo n.º 3
0
 public override Result Delete(EmployeeModel model)
 {
     try
     {
         Employee employee = _mapper.Map <Employee>(model);
         _employeeDAL.Delete(employee);
         return(_employeeDAL.Save());
     }
     catch (Exception error)
     {
         return(Result.BuildError("Erro ao deletar o registro do funcionário.", error));
     }
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="employeeIDs"></param>
 /// <returns></returns>
 public static int DeleteEmployee(int[] employeeIDs)
 {
     return(EmployeeDB.Delete(employeeIDs));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Xóa khách hàng
 /// </summary>
 /// <param name="employeeID"></param>
 /// <returns></returns>
 public static bool DeleteEmployee(int employeeID)
 {
     return EmployeeDB.Delete(employeeID);
 }
Exemplo n.º 6
0
 public void Delete(int id)
 {
     db.Delete(id);
 }
Exemplo n.º 7
0
 public static bool DeleteEmployee(int EmployeeID)
 {
     return(EmployeeDB.Delete(EmployeeID));
 }
Exemplo n.º 8
0
 public void Delete(int id)
 {
     _employeeDal.Delete(id);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Xóa nhân viên
 /// </summary>
 /// <param name="employeeId"></param>
 /// <returns></returns>
 public static bool DeleteEmployee(int employeeId)
 {
     return(EmployeeDB.Delete(employeeId));
 }