1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| 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();
| }
| }
| }
|
|