public IActionResult GetAllDrugs()
 {
     try
     {
         List <Drug>    drugs    = _drugService.ViewConfirmedDrugs();
         List <DrugDTO> drugsDTO = new List <DrugDTO>();
         foreach (var drug in drugs)
         {
             drugsDTO.Add(DrugMapper.DrugToDrugDTO(drug));
         }
         return(Ok(drugsDTO));
     }
     catch (NotFoundException exception)
     {
         return(NotFound(exception.Message));
     }
 }
 public IActionResult GetDrugsByRoomNumber(int roomNumber)
 {
     try
     {
         List <Drug>    drugsInRoom    = _drugService.GetDrugsByRoomNumber(roomNumber);
         List <DrugDTO> drugsInRoomDTO = new List <DrugDTO>();
         foreach (var drugInRoom in drugsInRoom)
         {
             drugsInRoomDTO.Add(DrugMapper.DrugToDrugDTO(drugInRoom));
         }
         return(Ok(drugsInRoomDTO));
     }
     catch (NotFoundException exception)
     {
         return(NotFound(exception.Message));
     }
 }