Ejemplo n.º 1
0
        /// <summary>
        /// The method deletes order from check
        /// </summary>
        /// <param name="check">check user</param>
        /// <returns>return true or false</returns>
        public async Task <bool> DeleteCheck(Models.Check check)
        {
            bool result = false;

            try
            {
                result = await checkManager.DeleteCheck(check);
            }
            catch (Exception ex)
            {
            }
            return(result);
        }
Ejemplo n.º 2
0
        public async Task <bool> EntryCheck(Cart cart, Models.Check check)
        {
            try
            {
                string userId = User.Identity.GetUserId();
                check.refUser = userId;
                bool result = await checkManager.EntryCheck(cart, check);

                if (result)
                {
                    cart.Clear();
                }
                return(result);
            }
            catch (Exception ex)
            {
            }
            return(false);
        }