2023-09-17 13:00:24 +02:00
|
|
|
|
using Google.Apis.Sheets.v4;
|
|
|
|
|
|
using System.Globalization;
|
|
|
|
|
|
using WebAPI.Models;
|
|
|
|
|
|
|
2023-09-18 11:29:25 +02:00
|
|
|
|
namespace WebAPI.dataProcessors
|
2023-09-17 13:00:24 +02:00
|
|
|
|
{
|
2023-09-18 11:29:25 +02:00
|
|
|
|
public class CopyProcessor
|
2023-09-17 13:00:24 +02:00
|
|
|
|
{
|
|
|
|
|
|
private AppDbContext db;
|
|
|
|
|
|
|
2023-09-18 11:29:25 +02:00
|
|
|
|
public CopyProcessor(
|
2023-09-17 13:00:24 +02:00
|
|
|
|
AppDbContext _db)
|
|
|
|
|
|
{
|
|
|
|
|
|
db = _db;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-09-18 11:29:25 +02:00
|
|
|
|
public Layer process(Layer sourceLayer)
|
2023-09-17 13:00:24 +02:00
|
|
|
|
{
|
2023-09-18 11:29:25 +02:00
|
|
|
|
Layer dataSource = this.db.Layers
|
|
|
|
|
|
.Where(x => x.ParentId == sourceLayer.Id)
|
|
|
|
|
|
.OrderByDescending(x => x.CreatedAt)
|
|
|
|
|
|
.First();
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
2023-09-17 13:00:24 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|