public ActionResult CreateReceipt(CreateReceiptViewModel model)
        {
            if (!ModelState.IsValid)
              {
            return RedirectToAction("Economy", "Home", new { userId = model.UserId });
              }

              InsertReceipt(model);
              return RedirectToAction("Economy", "Home", new { userId = model.UserId });
        }
        private void InsertReceipt(CreateReceiptViewModel model)
        {
            int uId;
              decimal price;

              if (!int.TryParse(model.UserId, out uId) || !decimal.TryParse(model.ReceiptTotal, out price))
            return;

              var receipt = new Receipt
              {
            UserId = uId,
            ReceiptName = model.ReceiptName,
            TotalPrice = price,
            ReceiptDate = model.ReceiptDate
              };

              _receiptService.InsertReceipt(receipt);
        }