How can I process the `foreach` loop in MVC. In the bellow controller I am calling a method called `SendSimpleMessage()` which sends an email to its parameter input but on my controller I am unable to use `foreach` properly.

[![screenshot](https://i.stack.imgur.com/LqehI.png)](https://i.stack.imgur.com/LqehI.png)

```
[HttpPost]
        public ActionResult EmailCampaignProcess(FormCollection collection)
        {
            //var userType = Request["userType"];
            //var emailContent = Request["emailContent"];
            //SendSimpleMessage();
            //ViewBag.Message = "Hello " + Request["userType"];

            var Emails = db.Users.Where(d => d.Subscriptions.Any(x => x.Status == true)).Select(u => u.Email).ToArray();

            foreach (Emails as Email) {

                SendSimpleMessage(Email);

            }

        }

```