Code error

Jul 27 2015 4:41 PM
im trying to create the Test result for the patient, every codes are working now the problem is with my create controler it's giving me errors in line 5(shaded line) in above code, can anyone please help
public ActionResult Create(int ? PatientId)
{
var ee = new HIVTestResultBusiness();
var Pb = new PatientBusiness();
if(PatientId.HasValue)
{
var Pname = Pb.GetPatients().Find(x => x.PatientId == PatientId.Value);
var model = new HIVTestResultModel.PatientId
{
PatientName = Pname.FullName.ToUpper() + " " + Pname.Surname.ToUpper(),
PatientId = PatientId.Value
};
System.Web.HttpContext.Current.Session["PatientId"] = PatientId;
return View(model);
}
return View();
 
i'd really appreciate your help good programmers 

Answers (1)