Esempio n. 1
0
        public async Task <ActionResult> DeleteConfirmed(long id)
        {
            tblInterviewDetails tblInterviewDetails = await db.tblInterviewDetails.FindAsync(id);

            db.tblInterviewDetails.Remove(tblInterviewDetails);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,ScheduleDateTime,InterviewerId,tblMaInterviewFeedbackStatusId,FeedbackDetails,IsInterviewTaken,tblMaInterviewTypeId,IsDeleted,IsActive")] tblInterviewDetails tblInterviewDetails)
        {
            if (ModelState.IsValid)
            {
                db.Entry(tblInterviewDetails).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.InterviewerId = new SelectList(GetUsers(), "Id", "FirstName", tblInterviewDetails.InterviewerId);
            ViewBag.tblMaInterviewFeedbackStatusId = new SelectList(db.tblMaInterviewFeedbackStatus, "Id", "Status", tblInterviewDetails.tblMaInterviewFeedbackStatusId);
            ViewBag.tblMaInterviewTypeId           = new SelectList(db.tblMaInterviewTypes, "Id", "Type", tblInterviewDetails.tblMaInterviewTypeId);
            return(View(tblInterviewDetails));
        }
Esempio n. 3
0
        // GET: InterviewDetails/Details/5
        public async Task <ActionResult> Details(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tblInterviewDetails tblInterviewDetails = await db.tblInterviewDetails.FindAsync(id);

            if (tblInterviewDetails == null)
            {
                return(HttpNotFound());
            }
            return(View(tblInterviewDetails));
        }
Esempio n. 4
0
        // GET: InterviewDetails/Edit/5
        public async Task <ActionResult> Edit(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tblInterviewDetails tblInterviewDetails = await db.tblInterviewDetails.FindAsync(id);

            if (tblInterviewDetails == null)
            {
                return(HttpNotFound());
            }
            ViewBag.InterviewerId = new SelectList(GetUsers(), "Id", "FirstName", tblInterviewDetails.InterviewerId);
            ViewBag.tblMaInterviewFeedbackStatusId = new SelectList(db.tblMaInterviewFeedbackStatus, "Id", "Status", tblInterviewDetails.tblMaInterviewFeedbackStatusId);
            ViewBag.tblMaInterviewTypeId           = new SelectList(db.tblMaInterviewTypes, "Id", "Type", tblInterviewDetails.tblMaInterviewTypeId);
            return(View(tblInterviewDetails));
        }