public async Task <IActionResult> AddStock(NewStockViewModel model) { if (!ModelState.IsValid) { return(View(model)); } await _stockRepository.AddStockAsync(stockName : model.StockName, address : model.Address); return(RedirectToAction(nameof(Stocks))); }