示例#1
0
        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);
        }
示例#2
0
 public IViewComponentResult Invoke(UserEventsModel model)
 {
     return(View(model));
 }