Ejemplo n.º 1
0
        public Urls New(string pAction, Guid pUserId)
        {
            var uRLParm = new Urls()
            {
                Id           = Guid.NewGuid(),
                UserId       = pUserId,
                Action       = pAction,
                CreateUserId = pUserId,
                CreateDt     = DateTime.Now,
                ChangeUserId = pUserId,
                ChangeDt     = DateTime.Now
            };

            return(uRLParm);
        }
Ejemplo n.º 2
0
        public Urls New(Guid pId, Guid pDeviceId, Guid pUserId, string pAction, Guid pGameId, Guid pMyUserId)
        {
            var uRLParm = new Urls()
            {
                Id           = pId,
                UserId       = pUserId,
                Action       = pAction,
                GameId       = pGameId,
                CreateUserId = pUserId,
                CreateDt     = DateTime.Now,
                ChangeUserId = pUserId,
                ChangeDt     = DateTime.Now
            };

            return(uRLParm);
        }
Ejemplo n.º 3
0
        public Urls Add(Guid pUserId, string pAction, string pPaypal = null)
        {
            var efUrl = new Urls()
            {
                Id           = Guid.NewGuid(),
                UserId       = pUserId,
                Action       = pAction,
                Paypal       = pPaypal,
                CreateUserId = pUserId,
                CreateDt     = DateTime.Now,
                ChangeUserId = pUserId,
                ChangeDt     = DateTime.Now
            };

            Context.Urls.Add(efUrl);
            return(efUrl);
        }