private static async Task<PublishViewModel> GetFullAndPartialViewModel(IDataContext context, TakeRateFilter filter) { var model = new PublishViewModel(GetBaseModel(context)); model.AvailableFiles = await context.TakeRate.ListPublish(filter); return model; }