public async Task<IActionResult> Create([Bind("SignId,LayoutId,PDFDefinition,ImageThumbnail")] SignsLayouts signsLayouts)
 {
     if (ModelState.IsValid)
     {
         _context.Add(signsLayouts);
         await _context.SaveChangesAsync();
         return RedirectToAction(nameof(Index));
     }
     return View(signsLayouts);
 }
        public async Task <IActionResult> Create([Bind("ApproverID,ApproverName,Password")] SignsApprovers signsApprovers)
        {
            if (ModelState.IsValid)
            {
                _context.Add(signsApprovers);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(signsApprovers));
        }
        public async Task <IActionResult> Create([Bind("ID,AdminName,Password")] DashBoard dashBoard)
        {
            if (ModelState.IsValid)
            {
                _context.Add(dashBoard);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(dashBoard));
        }
        public async Task <IActionResult> AddOrEdit([Bind("SignId,Swedish,English,Russian,Arabic")] Signs signs)
        {
            if (ModelState.IsValid)
            {
                if (signs.SignId == 0)
                {
                    _context.Add(signs);
                }
                else
                {
                    _context.Update(signs);
                }
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(signs));
        }