示例#1
0
        public ActionResult <IEnumerable <Keep> > GetMyKeeps()
        {
            string user = HttpContext.User.Identity.Name;

            if (user != null)
            {
                return(Ok(_repo.GetUsersKeeps(user)));
            }
            return(Unauthorized("You need to log in to get keeps"));
        }