Example #1
0
        public static async Task ValidateId(string id)
        {
            try
            {
                var idExists = await AccountDAO.CheckIdExists(id);

                if (!idExists)
                {
                    throw new CustomExceptions.InvalidOperationException("Id inexistente");
                }
            }
            catch (Exception)
            {
                throw;
            }
        }