// POST: api/ProjectUser public IHttpActionResult Post([FromBody] List <ProjectUser> projectUsers) { ProjectUserRepository projectUserRepository = new ProjectUserRepository(Convert.ToInt32(Request.Headers.GetValues("CurrentUserID").First())); projectUserRepository.SaveProjectUsers(projectUsers); return(Json(new { count = projectUsers.Count.ToString() })); }