Question: I am trying to call a controller action method inside the lambda expression like below.

Here `dtImporteddata` is my `DataTable`

```
public class DepartmentController : Controller
{
      public ActionResult Create(FormCollection collection, int ParentDepartmentID)
    {
       return view();
    }
}

   dtImporteddata.Rows.Cast<DataRow>().Select(r => new DepartmentController().Create(new FormCollection{ 
                {"ParentDepartmentID","57"},
                {"DepartmentPrefix",r["Prefix"].ToString()},
                {"DepartmentID","0"},
                {"IsSpecialDepartment",null},
                {"Description",r["Description"].ToString()},
                {"Name",r["Name"].ToString()},
                {"LocationIDs.$.PackedValue","4;;;"}
             }, 0)).ToList();

```

if i write like above the `Create()` method is getting called perfectly but if i remove `ToList()` then the `Create()` is not getting called.

Answer: 
Have you just tried mounting a synced folder to `/etc/salt/grains`?

```
## For masterless, mount your salt file root
config.vm.synced_folder "salt/roots/", "/srv/salt/"
config.vm.synced_folder "salt/grains.d/", "/etc/salt/grains.d/"

```
Vagrant's implementation of **salt.grains\_config** doesn't copy the file to the **/etc/salt/minion.d** folder as you might expect. Instead it copies the file to **/etc/salt/grains**.

To get the salt-minion to read this new **grains** file, you just need to add the following to your minion configuration:

/etc/salt/minion
================

```
include:
  - /etc/salt/grains

```