Exemple #1
0
        public bool ApplyJobs(IApplyJob obj)
        {
            Job objJob = new Job();

            objJob.ApplyJob(obj);
            return(true);
        }
Exemple #2
0
        public bool ApplyJob(IApplyJob obj)
        {
            con.Open();
            SqlCommand cmd = new SqlCommand("uspApplyJob", con);

            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.Clear();
            cmd.Parameters.AddWithValue("@JobID", obj.JobID);
            cmd.Parameters.AddWithValue("@JobSeekerID", obj.JobSeekerId);
            cmd.Parameters.AddWithValue("@Status", obj.Status);

            int result = 0;

            result = cmd.ExecuteNonQuery();
            con.Close();
            return(true);
        }