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()); }
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()); }