public static WorkgroupAddressListModel Create(Workgroup workgroup)
 {
     Check.Require(workgroup != null);
     var viewModel = new WorkgroupAddressListModel { Workgroup = workgroup };
     viewModel.WorkgroupAddresses = workgroup.Addresses.Where(a => a.IsActive);
     return viewModel;
 }
        public static WorkgroupAddressListModel Create(Workgroup workgroup)
        {
            Check.Require(workgroup != null);
            var viewModel = new WorkgroupAddressListModel {
                Workgroup = workgroup
            };

            viewModel.WorkgroupAddresses = workgroup.Addresses.Where(a => a.IsActive);
            return(viewModel);
        }