public static internalDTO.TaskerTask MapFromExternal(externalDTO.TaskerTask taskerTask) { var res = taskerTask == null ? null : new internalDTO.TaskerTask { Id = taskerTask.Id, TaskName = taskerTask.TaskName, Description = taskerTask.Description, TimeEstimate = taskerTask.TimeEstimate, AddressId = taskerTask.AddressId, Address = AddressMapper.MapFromExternal(taskerTask.Address), }; return(res); }
public static internalDTO.UserOnAddress MapFromExternal(externalDTO.UserOnAddress userOnAddress) { var res = userOnAddress == null ? null : new internalDTO.UserOnAddress { Id = userOnAddress.Id, Start = userOnAddress.Start, End = userOnAddress.End, AddressId = userOnAddress.AddressId, AppUserId = userOnAddress.AppUserId, Address = AddressMapper.MapFromExternal(userOnAddress.Address), AppUser = AppUserMapper.MapFromExternal(userOnAddress.AppUser) }; return(res); }