diff options
Diffstat (limited to 'api/WhatApi/Endpoints/UploadContentEndpoint.cs')
| -rw-r--r-- | api/WhatApi/Endpoints/UploadContentEndpoint.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/WhatApi/Endpoints/UploadContentEndpoint.cs b/api/WhatApi/Endpoints/UploadContentEndpoint.cs index 2c84252..26dbdba 100644 --- a/api/WhatApi/Endpoints/UploadContentEndpoint.cs +++ b/api/WhatApi/Endpoints/UploadContentEndpoint.cs @@ -1,6 +1,6 @@ namespace WhatApi.Endpoints; -public class UploadContentEndpoint(Database db) : BaseEndpoint +public class UploadContentEndpoint(AppDatabase db) : BaseEndpoint { public record UploadContent(IFormFile File, string LatLong); @@ -19,12 +19,12 @@ public class UploadContentEndpoint(Database db) : BaseEndpoint var gf = NtsGeometryServices.Instance.CreateGeometryFactory(srid: Constants.Wgs84SpatialReferenceId); var point = gf.CreatePoint(new Coordinate(double.Parse(longitude), double.Parse(latitude))); - var place = new Tables.Place() { + var place = new Place() { ContentId = contentId, Location = point }; - var content = new Tables.Content() { + var content = new Content() { Id = contentId, Mime = request.File.ContentType, BlobId = blobId, |
