Example #1
0
        public async Task <IActionResult> GetTray([FromRoute] long boxId, [FromRoute] long trayId)
        {
            try
            {
                var tray = await _boxService.GetTray(User.GetId(), boxId, trayId);

                return(Ok(tray));
            }
            catch (Exception e)
            {
                return(NotFound());
            }
        }