Example #1
0
        public static bool PendingStopVerificationAll(string Phone)
        {
            try
            {
                bool to_return = false;
                using (var db = new ChoremanEntities(PrivateValues.GetConnectionString()))
                {
                    foreach (var ChoreUser in db.ChoreUsers.Where(x => x.IsActive && x.IsVerified && x.Phone == Phone))
                    {
                        ChoreUser.IsPendingCancel = true;
                        to_return = true;
                    }

                    db.SaveChanges();

                    return(to_return);
                }
            }
            catch (Exception ex)
            {
                throw Utility.ThrowException(ex);
            }
        }