public async Task<ActionResult<Library.Drive>> Get(int id) { Library.Drive drive = await data.GetDrive(id); if (drive == null) return NotFound(); else return Ok(drive); }
public async Task <ActionResult <Library.Drive> > GetById(int id) { Library.Drive drive = await data.GetArchiveDrive(id); if (drive == null) { return(NotFound()); } else { return(Ok(drive)); } }