private static Board.MissileStatus Hit(Commands.HitCommand hitCommand) { var response = _client.PutAsJsonAsync("api/hit", hitCommand).Result; var result = JsonConvert.DeserializeObject <Board.MissileStatus>(response.Content.ReadAsStringAsync().Result); return(result); }
public HttpResponseMessage Hit(Commands.HitCommand hitCommand) { var status = Storage.Console.Hit(hitCommand); return(Request?.CreateResponse(HttpStatusCode.OK, new Status(status.Result.ToString(), status.Finished))); }