public async Task <UserEventsModel> GetUserEventsByDate(string userId, string date = "") { var model = new UserEventsModel() { // PublicEvents = await _publicEventService.GetPublicEvents(date: date, userId: userId), PrivateEvents = await _privateEventService.GetUserPrivateEvents(userId, date), Notes = await _noteService.GetUserNotes(userId, date) }; return(model); }
public IViewComponentResult Invoke(UserEventsModel model) { return(View(model)); }