public IHttpActionResult GetCoordinatesFromRowAndColumn(char row, int column) { var triangle = new TriangleImage(); var coordinates = triangle.GetCoordinates(row, column); return(Ok(coordinates)); }
public IHttpActionResult GetRowAndColumnFromCoordinates([FromBody] Coordinates coordinates) { var triangle = new TriangleImage(); var rowAndColumn = triangle.GetRowAndColumn(coordinates); return(Ok(rowAndColumn)); }