private bool IsExistCheckList(int releaseID) { using (IReleaseChecklistAnswerRepository db = new ReleaseChecklistAnswerRepository()) { return(db.IsExistCheckList(releaseID)); } }
public PartialViewResult _ReleaseHeader(int ReleaseID, ReleaseGeneralDetails GeneralDetails) { using (IReleaseChecklistAnswerRepository db = new ReleaseChecklistAnswerRepository()) { ViewBag.IsExistCheckList = db.IsExistCheckList(ReleaseID); } return(PartialView(GeneralDetails)); }