public string GetRatingList() { var pathGetList = "http://localhost:2250/api/User/GetRatingList?projectId=" + RatingProjectId + "&ratingTypeName=" + EventConstants.ActiveRatingType.Name; var service = new JsonRequestService <ApiAction>(pathGetList); var ratings = service.Get(); return(ratings); }
public void Comment(string userId, string path) { var service = new JsonRequestService <ApiAction>(path); service.Post(new ApiAction() { ProjectUserExternalId = userId, ProjectId = RatingProjectId, ActionTypeName = EventConstants.ActiveRatingType.ActionTypeNames.Comment, RatingTypeName = EventConstants.ActiveRatingType.Name }); }