private ActionResult List <TEntity, KService>() where TEntity : class where KService : ISimpleService <TEntity>, new() { var service = new KService(); var vModel = new SimpleListVModel <TEntity>(); vModel.Entities = service.GetEntities(); return(View(vModel)); }