public IHttpActionResult GetSingle(int id) { var domainModel = BizLogic.GetOne("Values", id.ToString()); if (domainModel == null) { return(NotFound()); } // todo: implement automapper for this return(Ok(new ValuesViewModel(domainModel.SampleDomainId, "Values") { ResourceModelString = domainModel.SampleDomainString })); }