public bool ApplyJobs(IApplyJob obj) { Job objJob = new Job(); objJob.ApplyJob(obj); return(true); }
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); }