public GetStdUPdateQuestionAnswereById_Result GetStdUPdateQuestionAnswereById(int StudentExamDetailsId) { try { using (aspccEntities db = new aspccEntities()) { GetStdUPdateQuestionAnswereById_Result questiodetails = new GetStdUPdateQuestionAnswereById_Result(); questiodetails = db.GetStdUPdateQuestionAnswereById(StudentExamDetailsId).FirstOrDefault(); return(questiodetails); } } catch (Exception ex) { com.Loginsert("DalGetStdUPdateQuestionAnswereById", "GetStdUPdateQuestionAnswereById", ex.StackTrace, ex.Message); return(null); } }