예제 #1
0
        public ActionResult <IEnumerable <Keep> > GetKeepsByUserId()
        {
            string             userId = HttpContext.User.Identity.Name;
            IEnumerable <Keep> result = _keepRepo.GetAllKeepByUserId(userId);

            if (result != null)
            {
                return(Ok(result));
            }
            return(NotFound());
        }