Ejemplo n.º 1
0
 private void DeleteSkill()
 {
     try
     {
         var url = string.Format("api/Skills/Delete?id=" + Request.QueryString["id"]);
         var ret = wHelper.DeleteRecordFromWebApi(url);
         GetSkills();
         if (ret > 0)
         {
             lblResponseMsg.Text      = Constants.SUCCESS_DELETE;
             lblResponseMsg.ForeColor = Constants.successColor;
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
Ejemplo n.º 2
0
 private void DeleteInterview()
 {
     try
     {
         var url = string.Format("api/Interviews/Delete?id=" + Request.QueryString["id"]);
         var ret = wHelper.DeleteRecordFromWebApi(url);
         Response.Redirect(WebURL + "InterviewUpdate?job_id=" + Request.QueryString["job_id"]);
         if (ret > 0)
         {
             lblResponseMsg.Text      = Constants.SUCCESS_DELETE;
             lblResponseMsg.ForeColor = Constants.successColor;
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
Ejemplo n.º 3
0
 private void DeleteCustomerStaff()
 {
     try
     {
         var url = string.Format("api/CustomerStaffs/Delete?id=" + Request.QueryString["id"]);
         var ret = wHelper.DeleteRecordFromWebApi(url);
         GetAllCustomerStaffs(Convert.ToInt32(Request.QueryString["customer_id"]));
         if (ret > 0)
         {
             lblResponseMsg.Text      = Constants.SUCCESS_DELETE;
             lblResponseMsg.ForeColor = Constants.successColor;
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
Ejemplo n.º 4
0
 private void DeleteCandidate()
 {
     GetCandidateDocuments(Convert.ToInt32(Request.QueryString["id"]));
     foreach (var document in candidateDocumentList)
     {
         File.Delete(Server.MapPath(Constants.uploadsDir) + document["filename"]);
     }
     try
     {
         var url = string.Format("api/Candidates/Delete?id=" + Request.QueryString["id"]);
         var ret = wHelper.DeleteRecordFromWebApi(url);
         GetCandidateList();
         if (ret > 0)
         {
             lblResponseMsg.Text      = Constants.SUCCESS_DELETE;
             lblResponseMsg.ForeColor = Constants.successColor;
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }