示例#1
0
        public IActionResult getDispatchableDrugStock(int drug_id, string drug_loc)
        {
            _log4net.Info(" Http Get Request for Drug Details by Location and ID");
            var drug = _drug.GetDispatchableDrugStock(drug_id, drug_loc);

            if (drug == null)
            {
                return(null);
            }
            return(Ok(drug));
        }
示例#2
0
 /// <summary>
 /// This method is responsible for returing the Drug Details searched by Drug ID and Location
 /// </summary>
 public DrugLocation GetDispatchableDrugStock(int drugId, string location)
 {
     return(_drugRepository.GetDispatchableDrugStock(drugId, location));
 }