public IEnumerable <Keep> GetByUser(string userId) { IEnumerable <Keep> keeps = _repo.GetByUser(userId); if (keeps != null) { return(keeps); } throw new Exception("Are you logged in?"); }
internal IEnumerable <Keep> GetByUser(string id, Profile userInfo) { var res = _repo.GetByUser(id); if (res == null) { throw new System.Exception("Bad id, please check your input and try again"); } return(res); }
public IEnumerable <Keep> GetByUser(string userId) { return(_repo.GetByUser(userId)); }