public static TaskDto createTaskDTO(Guid TaskId, Guid JobId, Guid RecruiteeId, String TaskDescription, double? Rating) { TaskDto task = new TaskDto(); task.TaskId = TaskId; task.JobId = JobId; task.RecruiteeId = RecruiteeId; task.TaskDescription = TaskDescription; task.Rating = Rating; return task; }
public static TaskDto createTaskDTO(Task obj) { TaskDto task = new TaskDto(); task.TaskId = obj.TaskId; task.JobId = obj.JobId; task.RecruiteeId = obj.RecruiteeId; task.TaskDescription = obj.TaskDescription; task.Rating = (double?)obj.Rating; return task; }