public IEnumerable<Figure> PostByBody([FromBody] Figure figure) { string body = Request.Content.ReadAsStringAsync().Result; if (figure != null) { FigureManager.Figures.Add(figure); } return FigureManager.Figures; }