public async Task <List <Model.Notification> > GetNotifications() { var NotificationList = data.GetNotifications(); var notification = Mapper.Map <List <Data.Notification>, List <Model.Notification> >(NotificationList); foreach (var item in notification) { item.Class = stdData.GetClassName(item.Class); } return(notification); }