Пример #1
0
        public ActionResult IndexCand()
        {
            var inter = new List <InterviewVM>();

            foreach (Interview ivm in Service.GetInterviewByCandidateId(1))
            {
                if (ivm.Interview_Type == TypeInt.Unscheduled)
                {
                    inter.Add(new InterviewVM()
                    {
                        InterviewId        = ivm.InterviewId,
                        User_Id            = ivm.User_Id,
                        Candidat_Id        = ivm.Candidat_Id,
                        Interview_Location = ivm.Interview_Location,
                        Interview_Type     = (TypeVM)ivm.Interview_Type
                    });
                }
                else
                {
                    inter.Add(new InterviewVM()
                    {
                        InterviewId        = ivm.InterviewId,
                        User_Id            = ivm.User_Id,
                        Candidat_Id        = ivm.Candidat_Id,
                        Interview_Date     = ivm.Interview_Date,
                        Interview_Location = ivm.Interview_Location,
                        Interview_Type     = (TypeVM)ivm.Interview_Type
                    });
                }
            }
            return(View(inter));
        }