Manage the update of some data at the
start of the database
This commit is contained in:
@@ -49,9 +49,15 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
return _cacheService.Get<IEnumerable<Aircraft>>(CacheType.Aircraft);
|
||||
}
|
||||
|
||||
public void UpdateAircraft(int id, Aircraft aircraft)
|
||||
public bool UpdateAircraft(int id, Aircraft aircraft, bool resetCache = true)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
aircraft.Id = id;
|
||||
|
||||
var result = _aircraftRepository.Update(aircraft);
|
||||
if (resetCache && result)
|
||||
_cacheService.Delete(CacheType.JumpType);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
Reference in New Issue
Block a user