Update the datacontract of the gear

This commit is contained in:
Sébastien André
2019-12-04 12:03:14 +01:00
parent 43dda7d31a
commit 789c190c95
3 changed files with 29 additions and 11 deletions

View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace skydiveLogs_api.Model
namespace skydiveLogs_api.Model
{
public class Gear
{

View File

@@ -1,11 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace skydiveLogs_api.DataContract
namespace skydiveLogs_api.DataContract
{
public class GearReq
{
public int Id { get; set; }
public string Name { get; set; }
public string Manufacturer { get; set; }
public int MinSize { get; set; }
public int MaxSize { get; set; }
public string Aad { get; set; }
public string MainCanopy { get; set; }
public string ReserveCanopy { get; set; }
}
}

View File

@@ -5,5 +5,17 @@
public int Id { get; set; }
public string Name { get; set; }
public string Manufacturer { get; set; }
public int MinSize { get; set; }
public int MaxSize { get; set; }
public string Aad { get; set; }
public string MainCanopy { get; set; }
public string ReserveCanopy { get; set; }
}
}