Add Gear controller/service/repo and relations in db between Jumps and others objects

This commit is contained in:
Sébastien André
2019-11-22 23:19:17 +01:00
parent 29740709c6
commit b9a29bcd79
12 changed files with 178 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
using System.Collections.Generic;
using skydiveLogs_api.Model;
namespace skydiveLogs_api.Business.Interface
{
public interface IGearService
{
IEnumerable<Gear> GetAllGears();
Gear GetGearById(int id);
void DeleteGearById(int id);
void UpdateGear(int id, Gear Gear);
void AddNewGear(Gear Gear);
}
}

View File

@@ -11,7 +11,11 @@ namespace skydiveLogs_api.Business.Interface
Jump GetJumpById(int id);
void AddNewJump(Jump jump);
void AddNewJump(int aircraftId,
int dzId,
int jumpTypeId,
int gearId,
Jump jump);
void UpdateJump(int id, Jump jump);