/// <summary>
 /// Gets the customer related to the specified task
 /// </summary>
 public int GetCustomerFromTask(Guid taskId)
 {
     try
     {
         CartTaskDALC cartTaskDALC = new CartTaskDALC();
         return(cartTaskDALC.GetCustomerFromTask(taskId));
     }
     catch (Exception e)
     {
         throw new ApplicationException(ResourceManager.GetString("RES_ExceptionGetTask"), e);
     }
 }
        /// <summary>
        /// Creates a new task for the specified user
        /// </summary>
        public void CreateTask(Guid taskId, string logon)
        {
            try
            {
                CustomerDS   customerDS   = new CustomerDS();
                CustomerDALC customerDALC = new CustomerDALC();
                customerDALC.GetCustomerByEmail(customerDS, logon);

                int customerId = customerDS.Customers[0].CustomerId;

                CartTaskDALC cartTaskDALC = new CartTaskDALC();
                cartTaskDALC.CreateTask(taskId, customerId);
            }
            catch (Exception e)
            {
                throw new ApplicationException(ResourceManager.GetString("RES_ExceptionCreateTask"), e);
            }
        }
        /// <summary>
        /// Gets the task related to the specified user
        /// </summary>
        public Guid GetTask(string logon)
        {
            try
            {
                CustomerDS   customerDS   = new CustomerDS();
                CustomerDALC customerDALC = new CustomerDALC();
                customerDALC.GetCustomerByEmail(customerDS, logon);

                int customerId = customerDS.Customers[0].CustomerId;

                CartTaskDALC cartTaskDALC = new CartTaskDALC();
                return(cartTaskDALC.GetTask(customerId));
            }
            catch (Exception e)
            {
                throw new ApplicationException(ResourceManager.GetString("RES_ExceptionGetTask"), e);
            }
        }