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);
 }
Exemple #2
0
        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));
            }
        }