예제 #1
0
        //need to check this
        public ActionResult <IEnumerable <Keep> > GetByUser()
        {
            string             userId  = HttpContext.User.Identity.Name;
            IEnumerable <Keep> results = _kr.GetAllPrivate(userId);

            if (results == null)
            {
                return(BadRequest());
            }
            return(Ok(results));
        }