public static JobTask MapFromModel(vRpt_JobDetail task) { var t = new JobTask(); t.CopyFrom(task); return(t); }
protected void CopyFrom(vRpt_JobDetail task) { if (task == null) { return; } Description = task.JobCodeDescription; JobCode = task.JobCode; Rate = task.Rate; Quantity = task.Quantity; Amount = task.Amount; JobId = task.JobID; IsAddOn = task.IsAddOn; }