public IResponse <ApiResponse> ExamDataInsertion(Examdetails ObjExamdetails) { string Result = ""; Result = adminMasterService.ExamDataInsertion(ObjExamdetails); var ResultData = ExamDetail(0); return(null); }
public string ExamDataInsertion(Examdetails ObjExamdetails) { DbParam[] param = new DbParam[] { new DbParam(null, typeof(System.String), "_ExamDetailId"), new DbParam(userDetail.schooltenentId, typeof(System.String), "_SchooltenentId"), new DbParam(ObjExamdetails.ExamDescriptionId, typeof(System.String), "_ExamDescriptionId"), new DbParam(ObjExamdetails.Class, typeof(System.String), "_Class"), new DbParam(ObjExamdetails.SubjectId, typeof(System.String), "_SubjectId"), new DbParam(ObjExamdetails.ExamDate, typeof(System.DateTime), "_ExamDate"), new DbParam(ObjExamdetails.StartTime, typeof(System.String), "_Starttime"), new DbParam(ObjExamdetails.Duration, typeof(System.Int64), "_Duration"), new DbParam(userDetail.AccedemicStartYear, typeof(System.Int32), "_AcademicYearFrom"), new DbParam(userDetail.AccedemicStartYear + 1, typeof(System.Int32), "_AcademicYearTo"), new DbParam(userDetail.UserId, typeof(System.String), "_Adminid") }; Result = db.ExecuteNonQuery("sp_examdetails_InsUpd", param, true); if (Result == null || Result == "") { Result = ""; } return(Result); }