public JobDutyWithEmployees JobDutyGetByIdWithDetail(int id)
{
// Attempt to fetch the object
var o = ds.JobDuties.Include("Employees").SingleOrDefault(j => j.Id == id);
// Return the result, or null if not found
return (o == null) ? null : Mapper.Map<JobDutyWithEmployees>(o);
}