internal long UpdateInstitutionPrograms(BOInstitutionPrograms model) { try { long result = 0; Hashtable ht = new Hashtable(); ht.Add("programID", model.ProgramID); ht.Add("institutionID", model.InstitutionID); ht.Add("programTypeID", model.ProgramTypeID); ht.Add("programName", model.ProgramName); ht.Add("programDuration", model.ProgramDuration); ht.Add("numberOfSeats", model.NumberOfSeats); ht.Add("expensePerStudent", model.ExpensePerStudent); ht.Add("specializationID", model.SpecializationID); ht.Add("remarks", model.Remarks); ht.Add("CreatedBy", model.CreatedBy); ht.Add("CreatedPC", model.CreatedPC); result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_UpdateInstitutionPrograms")); return(result); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }
internal long DeleteInstitutionPrograms(BOInstitutionPrograms model) { try { long result = 0; Hashtable ht = new Hashtable(); ht.Add("programID", model.ProgramID); ht.Add("CreatedBy", model.CreatedBy); ht.Add("CreatedPC", model.CreatedPC); result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_DeletedInstitutionPrograms")); return(result); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }
internal static long DeleteInstitutionPrograms(BOInstitutionPrograms model) { DAInstitutionPrograms accessLayer = new DAInstitutionPrograms(); return(Convert.ToInt64(accessLayer.DeleteInstitutionPrograms(model))); }
internal static long InsertInstitutionPrograms(BOInstitutionPrograms model) { DAInstitutionPrograms accessLayer = new DAInstitutionPrograms(); return(accessLayer.InsertInstitutionPrograms(model)); }