Example #1
0
        public IEnumerable <Keep> GetByUserId()
        {
            var             user       = HttpContext.User;
            var             id         = user.Identity.Name;
            UserReturnModel activeUser = null;

            if (id != null)
            {
                activeUser = users.GetUserById(id);
            }
            var uid = activeUser.Id;

            return(db.GetAllByUserId(uid));
        }
Example #2
0
 public IEnumerable <Keep> GetByUserId(int id)
 {
     Console.WriteLine("yo" + id);
     return(db.GetAllByUserId(id));
 }