Exemplo n.º 1
0
 public bool replyJob( Guid appID, string _reply)
 {
     careersAppDataContext objApps = new careersAppDataContext();
     using(objApps)
     {
         var objReply = objApps.brdhc_JobApplications.Single(x => x.ApplicationId == appID);
         objReply.Reply = _reply;
         objApps.SubmitChanges();
         return true;
     }
 }
Exemplo n.º 2
0
 public bool deleteApp(Guid appID)
 {
     careersAppDataContext objApps = new careersAppDataContext();
     using (objApps)
     {
         var objDelApp = objApps.brdhc_JobApplications.Single(x => x.ApplicationId == appID);
         objApps.brdhc_JobApplications.DeleteOnSubmit(objDelApp);
         objApps.SubmitChanges();
         return true;
     }
 }
Exemplo n.º 3
0
 //insert
 public bool insertApp(Guid appID, Guid jobID, string _fname, string _lname, string _email, string _phone, string _resume, string _cover)
 {
     careersAppDataContext objApps = new careersAppDataContext();
     using (objApps)
     {
         brdhc_JobApplication objNewApp = new brdhc_JobApplication();
         objNewApp.ApplicationId = Guid.NewGuid();
         objNewApp.JobPostId = Guid.Parse(jobID.ToString());
         objNewApp.FirstName = _fname;
         objNewApp.LastName = _lname;
         objNewApp.Email = _email;
         objNewApp.Phone = _phone;
         objNewApp.ResumePath = _resume;
         objNewApp.CoverLetter = _cover;
         objApps.brdhc_JobApplications.InsertOnSubmit(objNewApp);
         objApps.SubmitChanges();
         return true;
     }
 }