示例#1
0
        public ActionResult Edit(int?Id)
        {
            ClsStatic.ValidateReferral();

            sPlsParticipants_Result rslt  = con.sPlsParticipants("s", Id, null, null, null, null, null, null, null, null, User.Identity.Name).ToList().FirstOrDefault();
            ParticipantsModels      model = new ParticipantsModels();

            model.Id                 = rslt.Id;
            model.Participant_Id     = rslt.ParticipantId;
            model.First_Name         = rslt.First_Name;
            model.Last_Name          = rslt.Last_Name;
            model.Address            = rslt.Address;
            model.Ward_No            = rslt.Ward_No;
            model.Contact_Number     = rslt.Contact_Number;
            model.Consent_Obtained   = rslt.Consent_Obtained;
            model.Interview_Language = rslt.Interview_Language;

            return(View(model));
        }
示例#2
0
        public ActionResult Index(InterviewModels model)
        {
            ClsStatic.ValidateReferral();
            ViewBag.Message = TempData["Message"];
            ViewBag.IsPopup = TempData["IsPopup"];
            int ProjectId = model.ProjectId;
            sPlsParticipants_Result rslt = con.sPlsParticipants("s", null, model.Participant_Id, null, null, null, null, null, null, null, User.Identity.Name).ToList().FirstOrDefault();

            if (rslt != null)
            {
                model.ProjectId      = ProjectId;
                model.Participant_Id = rslt.ParticipantId;
                model.First_Name     = rslt.First_Name;
                model.Last_Name      = rslt.Last_Name;
                model.Address        = rslt.Address;
                model.Ward_No        = rslt.Ward_No;
            }
            return(View(model));
        }