예제 #1
0
        public static externalDTO.UserTask MapFromDAL(internalDTO.UserTask userTask)
        {
            var res = userTask == null ? null : new externalDTO.UserTask
            {
                Id          = userTask.Id,
                Start       = userTask.Start,
                End         = userTask.End,
                TaskId      = userTask.TaskId,
                TaskGiverId = userTask.TaskGiverId,
                TaskerId    = userTask.TaskerId,
                TaskerTask  = TaskerTaskMapper.MapFromDAL(userTask.TaskerTask),
                TaskGiver   = AppUserMapper.MapFromDAL(userTask.TaskGiver),
                Tasker      = AppUserMapper.MapFromDAL(userTask.Tasker)
            };

            return(res);
        }
예제 #2
0
        public static Domain.UserTask MapFromDAL(DAL.App.DTO.UserTask userTask)
        {
            var res = userTask == null ? null : new Domain.UserTask
            {
                Id          = userTask.Id,
                Start       = userTask.Start,
                End         = userTask.End,
                TaskId      = userTask.TaskId,
                TaskGiverId = userTask.TaskGiverId,
                TaskerId    = userTask.TaskerId,
                TaskerTask  = TaskerTaskMapper.MapFromDAL(userTask.TaskerTask),
                TaskGiver   = AppUserMapper.MapFromDAL(userTask.TaskGiver),
                Tasker      = AppUserMapper.MapFromDAL(userTask.Tasker)
            };


            return(res);
        }