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 void Start([FromBody]ExportArgs args) { if (args == null || string.IsNullOrWhiteSpace(args.layers)|| (args.xmin == 0 && args.ymin == 0 && args.xmax == 0 && args.ymax == 0)) { return; } args.SetDefault(); } } }