public IEnumerable <ValuesViewModel> GetAll([FromUri] string filter = "") { var resourceModelList = new List <ValuesViewModel>(); var dm = BizLogic.GetMany("Values", filter); foreach (var model in dm) { resourceModelList.Add(new ValuesViewModel(model.SampleDomainId, "Values") { ResourceModelString = model.SampleDomainString }); } return(resourceModelList); }