public JavaScriptResult StockOut(SuperShopStockOutViewModel stockout) { try { var id = _rawSqlService.AddStockOuttems(stockout); //_purchaseService.Add(Mapper.Map<Purchase>(purchaseVm)); return(JavaScript($"ShowResult('{"Data saved successfully."}','{"success"}','{"redirect"}','{"/SuperShopPurchase/StockOut"}')")); } catch (Exception ex) { return(JavaScript($"ShowResult('{ex.Message}','failure')")); } }