Beispiel #1
0
        public async Task <ActionResult> load_unread_notifs()
        {
            var json = new StreamReader(Request.Body).ReadToEnd();
            var data = JsonConvert.DeserializeObject <NotificationEntity>(json);

            var _posts = await NotificationBLL.LoadItems(_context, data);

            foreach (var item in _posts)
            {
                item.from.img_url = UserUrlConfig.ProfilePhoto(item.from.Id, item.from.picturename, 0);
            }

            return(Ok(new { posts = _posts }));
        }