public string GetAllStock() { var list = _stocks.GetAllStock(); string result = JsonConvert.SerializeObject(list, Formatting.None); return(result); }
public IEnumerable <StockView> GetAllStock() { return(_repository.GetAllStock()); }
public string GetAllStock() { var list = _stocks.GetAllStock(); string result = JsonConvert.SerializeObject(list, Formatting.None); return(result); }
public IEnumerable <StockView> GetAllStock() { return(_repository.GetAllStock()); }