private WebimHistory Mapping(HistoryEntity e)
        {
            WebimHistory h = new WebimHistory();
            h.Type = e.Type;
            h.Send = e.Send;
             h.To = e.ToUser;
             h.From = e.FromUser;
            h.Nick = e.Nick;
            h.Body = e.Body;
            h.Style = e.Style;
            h.Timestamp = e.Timestamp;

            return h;
        }
 public static HistoryEntity New()
 {
     HistoryEntity entity = new HistoryEntity();
     entity.Created = DateTime.Now;
     entity.Updated = DateTime.Now;
     return entity;
 }