Example #1
0
        public ActionResult <IEnumerable <Keep> > GetAllUserKeeps()
        {
            try
            {
                var userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
                var keep   = _ks.GetAllUserKeep(userId);

                return(Ok(keep));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }