public IActionResult getDrugStockByLoc(string name, string drug_loc) { _log4net.Info(" Http Get Request for Drug Details by Location and ID"); var qty = _drug.getLocationQty(name, drug_loc); if (qty == 0) { return(NotFound()); } return(Ok(qty)); }