Esempio n. 1
0
        public int CreateApplicantJoining(TblSelectedApplicantsStaffing tblSelectedApplicants)
        {
            dbContext.Entry(tblSelectedApplicants).State = EntityState.Added;
            dbContext.TblSelectedApplicantsStaffing.Add(tblSelectedApplicants);
            int result = dbContext.SaveChanges();

            dbContext.Entry(tblSelectedApplicants).State = EntityState.Detached;
            return(result);
        }
Esempio n. 2
0
        public async Task <TblSelectedApplicantsStaffing> GetApplicantJoiningDetails(int id)
        {
            var result = dbContext.TblSelectedApplicantsStaffing.AsNoTracking().Where(r => r.ApplicantRequisitionId == id).AsNoTracking().FirstOrDefault();

            if (result == null)
            {
                result = new TblSelectedApplicantsStaffing();
            }
            return(result);
        }
 public long UpdateApplicantJoining(TblSelectedApplicantsStaffing tblSelectedApplicants)
 {
     return(ApplicantStaffingDAL.UpdateApplicantJoining(tblSelectedApplicants));
 }
 public int CreateApplicantJoining(TblSelectedApplicantsStaffing tblSelectedApplicants)
 {
     return(ApplicantStaffingDAL.CreateApplicantJoining(tblSelectedApplicants));
 }
        public IActionResult UpdateApplicantJoining([FromBody] TblSelectedApplicantsStaffing tblSelectedApplicants)
        {
            long result = _applicantstaffing.UpdateApplicantJoining(tblSelectedApplicants);

            return(Ok(result));
        }
        public IActionResult CreateApplicantJoining([FromBody] TblSelectedApplicantsStaffing tblSelectedApplicants)
        {
            int result = _applicantstaffing.CreateApplicantJoining(tblSelectedApplicants);

            return(Ok(result));
        }