internal void delete(NotificationModel item) { NotificationMapper.GetDatabase().Delete(item); }
internal void update(NotificationModel item) { NotificationMapper.GetDatabase().Update(item); }
public void Add(NotificationModel item) { NotificationMapper.GetDatabase().Insert(item); }
public NotificationModel GetById(string id) { return(NotificationMapper.GetDatabase().SingleOrDefault <NotificationModel>("WHERE Id=@0", id)); }
internal IList <NotificationModel> GetByTarget(string Target) { return(NotificationMapper.GetDatabase().Query <NotificationModel>("Select * from Items Where Target=@0", Target).ToList()); }
internal IList <NotificationModel> Get() { return(NotificationMapper.GetDatabase().Query <NotificationModel>("Select * from Notifications").ToList()); }