API_1.Controllers.FigureController.PostByBody C# (CSharp) Метод

PostByBody() публичный Метод

public PostByBody ( [ figure ) : IEnumerable
figure [
Результат IEnumerable
        public IEnumerable<Figure> PostByBody([FromBody] Figure figure)
        {
            string body = Request.Content.ReadAsStringAsync().Result;
            if (figure != null)
            {
                FigureManager.Figures.Add(figure);
            }
            return FigureManager.Figures;
        }