28 lines
616 B
C#
28 lines
616 B
C#
using Google.Apis.Sheets.v4;
|
|
using System.Globalization;
|
|
using WebAPI.Models;
|
|
|
|
namespace WebAPI.dataProcessors
|
|
{
|
|
public class CopyProcessor
|
|
{
|
|
private AppDbContext db;
|
|
|
|
public CopyProcessor(
|
|
AppDbContext _db)
|
|
{
|
|
db = _db;
|
|
}
|
|
|
|
public Layer process(Layer sourceLayer)
|
|
{
|
|
Layer dataSource = this.db.Layers
|
|
.Where(x => x.ParentId == sourceLayer.Id)
|
|
.OrderByDescending(x => x.CreatedAt)
|
|
.First();
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|