public void UpdatePlayerScreenContentLog(PlayerScreenContentLog playerscreencontentlog)
 {
     db.Entry(playerscreencontentlog).State = EntityState.Modified;
     db.SaveChanges();
 }
Exemplo n.º 2
0
        public int PlayerScreenContentLog_Create(int accountid, int playerid, string playername, int screenid, string screenname,
                                                int screencontentid, string screencontentname, int screencontenttypeid, string screencontenttypename,
                                                DateTime displaydatetime, DateTime closedatetime, string contentdetails)
        {
            try
            {
                IPlayerScreenContentLogRepository playerscreencontentlogrep = new EntityPlayerScreenContentLogRepository();

                PlayerScreenContentLog playerscreencontentlog = new PlayerScreenContentLog();
                playerscreencontentlog.AccountID = accountid;
                playerscreencontentlog.PlayerID = playerid;
                playerscreencontentlog.PlayerName = playername;
                playerscreencontentlog.ScreenID = screenid;
                playerscreencontentlog.ScreenName = screenname;
                playerscreencontentlog.ScreenContentID = screencontentid;
                playerscreencontentlog.ScreenContentName = screencontentname;
                playerscreencontentlog.ScreenContentTypeID = screencontenttypeid;
                playerscreencontentlog.ScreenContentTypeName = screencontenttypename;
                playerscreencontentlog.DisplayDateTime = displaydatetime;
                playerscreencontentlog.CloseDateTime = closedatetime;
                playerscreencontentlog.ContentDetails = contentdetails;

                playerscreencontentlogrep.CreatePlayerScreenContentLog(playerscreencontentlog);

                return playerscreencontentlog.PlayerScreenContentLogID;
            }
            catch { return 0; }
        }
 public void CreatePlayerScreenContentLog(PlayerScreenContentLog playerscreencontentlog)
 {
     db.PlayerScreenContentLogs.Add(playerscreencontentlog);
     db.SaveChanges();
 }