Exemplo n.º 1
0
        public HttpResponseMessage GetGoalsById(string userId, string goalId = "")
        {
            if (string.IsNullOrEmpty(userId))
            {
                return(Request.CreateResponse(HttpStatusCode.InternalServerError));
            }

            var goals = _goalRepository.GetGoalsByUserId(userId);

            var response = Request.CreateResponse(HttpStatusCode.OK, goals);

            return(response);
        }