using LFServer.cs; using LFServer.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace LFServer.Controllers { public class ExportController : ApiController { [HttpPost] public string Start([FromBody]ExportArgs args) { if (args == null || string.IsNullOrWhiteSpace(args.layers)|| (args.xmin == 0 && args.ymin == 0 && args.xmax == 0 && args.ymax == 0)) { return null; } return ExportUtil.Generate(args); } } }