public ActionResult DownloadToFile(string username, [FromBody] GoldPriceCalculation goldPrice)
        {
            DateTime dTime          = DateTime.Now;
            string   strPDFFileName = string.Format(username + " GoldPrice" + dTime.ToString("yyyyMMdd") + ".pdf");
            var      res            = _JewelryBL.CreatePdf(goldPrice);

            return(File(res, "application/pdf", strPDFFileName));
        }
        public async Task <ActionResult <GoldPriceCalculation> > GetCalculatedInfo(string user, [FromBody] GoldPriceCalculation goldPrice)
        {
            var _user = await userinfomanager.FindByNameAsync(user);

            //  var _userInfo =  _JewelryBL.GetUser(userInfo.Name);

            if (user == null || _user == null)
            {
                return(NotFound());
            }
            else
            {
                var userRoles = await userinfomanager.GetRolesAsync(_user);

                return(_JewelryBL.GetTotalGoldPrice(goldPrice, userRoles[0].ToString()));
            }
        }
 public ActionResult DownloadToPrinter(string username, [FromBody] GoldPriceCalculation goldPrice)
 {
     throw new NotImplementedException();
 }