using System.Collections.Generic;
public static void Main()
Mapper.CreateMap<Foo, Bar>()
var stuff = SomeController.GetStuff(DateTime.Now.Second);
d.Stuff = stuff.Contains(s.Name);
var foo = new List<Foo>() {
new Foo() { Name = "joe", Age = 10 },
new Foo() { Name = "jane", Age = 20 },
var bar = Mapper.Map<List<Foo>, List<Bar>>(foo);
public string Name { get; set; }
public int Age { get; set; }
public string Name { get; set; }
public int Age { get; set; }
public bool Stuff { get; set; }
public static class SomeController
public static List<string> GetStuff(int currentUserId)
return new List<string>() { "jane" };