//public async Task<IActionResult> Edit([Bind("ElementId,UserId,UserName,ElementName,ElementType,ElementDescription,StartDate,EndDate,InvestmentField,Investment1,Investment2,Investment3,Investment4,Investment5,Investment6,NumberOfLeads,ConversionPercentage,ConversionValue,Profit,Roi,RoiPercentage")] MarketingElements marketingElements)
        public async Task <IActionResult> Edit(int id, [Bind("ElementId,UserId,UserName,ElementName,ElementType,ElementDescription,StartDate,EndDate,InvestmentField,Investment1,Investment2,Investment3,Investment4,Investment5,Investment6,NumberOfLeads,ConversionPercentage,ConversionValue,Profit,Roi,RoiPercentage")] MarketingElements marketingElements)
        {
            if (id != marketingElements.ElementId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(marketingElements);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!MarketingElementsExists(marketingElements.ElementId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction("Index"));
                //return RedirectToAction(nameof(Index));
            }
            return(View(marketingElements));
        }
        public async Task <IActionResult> CreateWebsite([Bind("ElementId,UserId,UserName,ElementName,ElementType,ElementDescription,StartDate,EndDate,InvestmentField,Investment1,Investment2,Investment3,Investment4,Investment5,Investment6,NumberOfLeads,ConversionPercentage,ConversionValue,Profit,Roi,RoiPercentage")] MarketingElements marketingElements)
        {
            if (ModelState.IsValid)
            {
                _context.Add(marketingElements);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(marketingElements));
        }