public IActionResult Update( [FromForm] string ArticleNo, [FromForm] string ArticleName, [FromForm] string Description, [FromForm] string Category, [FromForm] decimal PriceInSEK) { JSONData jSONData = new JSONData(); string result = jSONData.Update(ArticleNo, ArticleName, Description, Category, PriceInSEK); if (result == "no such category") { return(Get(result)); } else { return(Get()); } }