public async Task <IActionResult> Create([Bind("DevID,DevFName,DevLName,Email,Phone")] Developer developer)
        {
            if (ModelState.IsValid)
            {
                _context.Add(developer);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(developer));
        }
Esempio n. 2
0
        public async Task <IActionResult> Create([Bind("BAID,BAFName,BALName,Email,Phone")] Analyst analyst)
        {
            if (ModelState.IsValid)
            {
                _context.Add(analyst);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(analyst));
        }
Esempio n. 3
0
        public async Task <IActionResult> Create([Bind("EmpID,FName,LName,Email,Phone")] Employee employee)
        {
            if (ModelState.IsValid)
            {
                _context.Add(employee);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(employee));
        }
Esempio n. 4
0
        public async Task <IActionResult> Create([Bind("AppID,AppName,AppNotes,POC,POCEmail,Telephone,AssignedBA,AssignedDev")] AppList appList)
        {
            if (ModelState.IsValid)
            {
                _context.Add(appList);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["AssignedBA"]  = new SelectList(_context.Analysts, "BAID", "BAFullname", appList.AssignedBA);
            ViewData["AssignedDev"] = new SelectList(_context.Developers, "DevID", "DevFullname", appList.AssignedDev);
            return(View(appList));
        }
Esempio n. 5
0
        public async Task <IActionResult> Create([Bind("MsrID,AppTitle,MSRtitle,DateAdded,MSRNote,AssignedEmpID,AssignedAppID")] MSRTask mSRTask)
        {
            if (ModelState.IsValid)
            {
                _context.Add(mSRTask);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["AssignedEmp"] = new SelectList(_context.Employees, "EmpID", "Fullname", mSRTask.AssignedEmpID);
            ViewData["AssignedApp"] = new SelectList(_context.Apps, "AppID", "AppName", mSRTask.AssignedAppID);
            return(View(mSRTask));
        }