public IHttpActionResult PostPlatformGame(PlatformGameDTO platformgame)
 {
     if (!ModelState.IsValid)
     {
         return BadRequest(ModelState);
     }
     facade.GetPlatformGameRepository().Add(new PlatformGameConverter().Reverse(platformgame));
     return CreatedAtRoute("DefaultApi", new { id = platformgame.Id }, platformgame);
 }
        public IHttpActionResult PutPlatformGame(int id, PlatformGameDTO platformgame)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != platformgame.Id)
            {
                return BadRequest();
            }
            facade.GetPlatformGameRepository().Update(new PlatformGameConverter().Reverse(platformgame));

            return StatusCode(HttpStatusCode.NoContent);
        }
 // GET: Admin/Game/CreatePlatformToGame/5
 public ActionResult CreatePlatformToGame(int gameId)
 {
     ViewBag.Platforms = new SelectList(facade.GetPlatformGateway().GetAll().OrderBy(g => g.Name), "Id", "Name");
     var platformGame = new PlatformGameDTO() {GameId = gameId };
     return View(platformGame);
 }
 public CrewBuyConfirmationVM(UserDTO user, PlatformGameDTO platformGame, CrewDTO crew)
 {
     User = user;
     PlatformGame = platformGame;
     Crew = crew;
 }