public bool DeleteRecordById(int id) { TiaSolutions.Core.DAL.Application l = ctx.Applications.Where(x => x.Id == id).FirstOrDefault(); if (l != null) { ctx.Applications.DeleteOnSubmit(l); ctx.SubmitChanges(); return(true); } else { return(false); } }
public Boolean ModifyMailSchedule(TiaSolutions.Core.DAL.Application data) { TiaSolutions.Core.DAL.Application k = ctx.Applications.Where(x => x.Id == data.Id && x.IsArchive == false).FirstOrDefault(); if (k != null) { k.InterviewDate = data.InterviewDate; k.DateTime = System.DateTime.Now; ctx.SubmitChanges(); return(true); } else { return(false); } }
public Boolean UpdateInfo(TiaSolutions.Core.DAL.Application data) { TiaSolutions.Core.DAL.Application k = ctx.Applications.Where(x => x.Id == data.Id && x.IsArchive == false).FirstOrDefault(); if (k != null) { k.Rating = data.Rating; k.Status = data.Status; k.Feedback_SM = data.Feedback_SM; k.Feedback_BC = data.Feedback_BC; k.DateTime = System.DateTime.Now; ctx.SubmitChanges(); return(true); } else { return(false); } }
public bool MoveToTPById(int id) { TiaSolutions.Core.DAL.Application l = ctx.Applications.Where(x => x.Id == id).FirstOrDefault(); if (l != null) { //l.DateTime = System.DateTime.Now; l.IsArchive = false; l.IsICP = false; l.IsTP = true; l.DateTime = System.DateTime.Now; ctx.SubmitChanges(); return(true); } else { return(false); } }
public bool MoveToICPById(int id) { TiaSolutions.Core.DAL.Application l = ctx.Applications.Where(x => x.Id == id).FirstOrDefault(); if (l != null) { //l.DateTime = System.DateTime.Now; l.IsArchive = false; l.IsICP = true; l.IsTP = false; l.Status = "Received"; l.Feedback_SM = ""; l.Feedback_BC = ""; l.Rating = 0; l.DateTime = System.DateTime.Now; ctx.SubmitChanges(); return(true); } else { return(false); } }