public ExpandoObject AddContributor(int projectId, string email)
        {
            dynamic o = new ExpandoObject();
            var member = Members.GetByEmail(email);
            if (member == null)
            {
                o.success = false;
                o.error = "Email not found";
                return o;

            }

            var project = Umbraco.TypedContent(projectId);

            if (project.GetPropertyValue<int>("owner") == Members.GetCurrentMemberId())
            {

                var cs = new ContributionService(DatabaseContext);
                cs.AddContributor(projectId, member.Id);
                o.success = true;
                o.memberName = member.Name;
                o.memberId = member.Id;
                return o;
            }
            else
            {
                o.success = false;
                o.error = "You aren't the project owner";
                return o;
            }
        }
        public HttpResponseMessage DeleteContributor(int projectId, int memberId)
        {
            var project = Umbraco.TypedContent(projectId);

            if (project.GetPropertyValue<int>("owner") == Members.GetCurrentMemberId())
            {
                var cs = new ContributionService(DatabaseContext);
                cs.DeleteContributor(projectId, memberId);

                return Request.CreateResponse(HttpStatusCode.Accepted);
            }
            else
            {
                return Request.CreateResponse(HttpStatusCode.Forbidden);
            }
        }