public IActionResult CreateRobot() { var robotId = _robotService.PostRobot(); if (robotId == 0) { return(NoContent()); } return(RedirectToAction("Index", "Robot", new { id = robotId })); }