public int Insert(InternshipScholarshipsDetails InternshipScholarshipDetail)
 {
     try
     {
         using (var db = new HCMEntities())
         {
             db.InternshipScholarshipsDetails.Add(InternshipScholarshipDetail);
             db.SaveChanges();
             return(InternshipScholarshipDetail.InternshipScholarshipDetailID);
         }
     }
     catch
     {
         throw;
     }
 }
 public int Delete(int InternshipScholarshipDetailID, int UserIdentity)
 {
     try
     {
         using (var db = new HCMEntities())
         {
             InternshipScholarshipsDetails InternshipScholarshipDetailObj = db.InternshipScholarshipsDetails.SingleOrDefault(x => x.InternshipScholarshipDetailID.Equals(InternshipScholarshipDetailID));
             db.InternshipScholarshipsDetails.Remove(InternshipScholarshipDetailObj);
             return(db.SaveChanges(UserIdentity));
         }
     }
     catch
     {
         throw;
     }
 }
 public void Delete(InternshipScholarshipsDetails InternshipScholarshipDetail)
 {
     throw new NotImplementedException();
 }