public static TeamWorkRequest GetValidTeamWorkRequest()
		{
			var teamWorkRequest = new TeamWorkRequest()
			{
				Message = "Add me",
				SentBy = GetValidUser()
			};

			return teamWorkRequest;
		}
        public IHttpActionResult Send(RequestModel request)
        {
            var teamwork = this.data.TeamWorks.Find(request.TeamWorkId);
            if (teamwork == null)
            {
                return BadRequest("Teamwork does not exist - invalid id");
            }

            var currentUserId = this.userIdProvider.GetUserId();

            var newRequest = new TeamWorkRequest() 
            { 
                Message = request.Message, 
                SentById = currentUserId, 
                TeamWork = teamwork
            };

            this.data.TeamWorkRequests.Add(newRequest);
            this.data.SaveChanges();

            request.Id = newRequest.Id;
            return Ok(request);
        }